Spring Boot 使用parent方式引用时 获取值属性方式默认@

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

采用官网提供的 引入依赖时,application.properties中的值变量,无法通过${}获取,这是由于Spring Boot 已经将字符方式调整为 @。故如果在,工程中仍想使用${},需加入


${}


        org.springframework.boot
        spring-boot-starter-parent
        2.0.4.RELEASE
         
    
	```

转载于:https://my.oschina.net/u/3247419/blog/2055530

你可能感兴趣的:(Spring Boot 使用parent方式引用时 获取值属性方式默认@)