Voici à quoi ressemble le fichier YAML. Ce que j'essaie de faire est de renvoyer le databaseHostURL
.Le démarrage de démarrage ne peut pas référencer un noeud dans un fichier YAML. Aucune propriété de ce type
spring:
profiles: default
databaseHostURL: localhost:3306
datasource:
driverClassName: com.mysql.jdbc.Driver
url: jdbc:mysql://${databaseHostURL}/mydatabase
Voici l'erreur sur Spring bootRun.
6:20:06 PM: Executing external task 'bootRun'...
:compileJava UP-TO-DATE
:compileGroovy UP-TO-DATE
:processResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processResources'.
> Could not copy file '/com/home/users/Test/src/main/resources/application.yml' to '/com/home/users/Test/build/resources/main/application.yml'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 0.589 secs
No such property: databaseHostURL for class: SimpleTemplateScript7
6:20:07 PM: External task execution finished 'bootRun'.