SpringBoot war package tomcat running startup error (Cannot determine embedded database driver class for database type NONE ),

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.