Exception in thread "main" java.lang.IllegalArgumentException: Circular placeholder reference 'server.port' in property definitions at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:141) at org…
Caused by: java.lang.IllegalArgumentException: Circular placeholder reference 'jdbc.driver' in property definitions at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:141) at org.springframework.util…
使用 application.properties 中配置的属性:@Value 注解. @RestController public class HelloWorldController { @Value("${server.port}") String port; @RequestMapping(value = "hi") public String hello(){ return "hello world! I am from " + por…