解决思路:properties文件不能识别
'helloController': Injection of autowired dependencies failed
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'mysql.driver' in value "${mysql.driver}"
解决:在启动文件加上@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
意思在properties没有配置datasource的一些相关属性
Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.
解决:端口占用问题
netstat -ano,查看端口进程ID。
taskkill /F /pid PID 杀死该ID的进程
Web server failed to start. Port 8086 was already in use.
未解决:思路查看@value相关知识
https://www.cnblogs.com/zacky31/p/8609990.html
Q:读取application.p