SpringBoot war package tomcat running startup error (Cannot determine embedded database driver class for database type NONE ),
Our project has been running directly in jar packages for a long time. Yesterday, my colleague said that he would be running in tomcat, so I could help him out for a long time. For details about how to run the springboot application on tomcat, refer to the blog
Http://blog.csdn.net/paranoia_zk/article/details/78128792
Then, the title error will be reported when the package is successfully deployed to the local tomcat for startup. If you have searched the internet, the following annotations will be added to the startup class: @ SpringBootApplication (exclude = {performanceautoconfiguration. class, HibernateJpaAutoConfiguration. class)
The test is invalid.
Solution:
Add annotation to the startup class: @ EnableAutoConfiguration (exclude = {performanceautoconfiguration. class}), which is valid for test.