pogoMoonL / SpringLab

0 stars 1 forks source link

spring @Value 與 Spring EL #6

Open yaodehaung opened 3 years ago

yaodehaung commented 3 years ago

https://openhome.cc/Gossip/Spring/Value.html SpringBoot 使用 @Value 从 YAML文件读取属性

yaodehaung commented 3 years ago

mvn run insert vm option

REF: https://stackoverflow.com/questions/44735189/how-to-add-jvm-options-to-program-started-by-mvn-spring-bootrun/44735599

yaodehaung commented 3 years ago

https://codertw.com/%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80/98096/

yaodehaung commented 3 years ago

https://blog.csdn.net/zhaojianting/article/details/80324533

yaodehaung commented 3 years ago

SpringApplication

yaodehaung commented 3 years ago

maven plugin question:

You can configure spring-boot-maven-plugin to always include you jvm options when run:

org.springframework.boot spring-boot-maven-plugin -Dapp.name=test

Or if you don't need that arguments to stay permanently, use this on the command line:

mvn spring-boot:run -Drun.jvmArguments="..."