Problem log - @ SpringBootApplication (exclude = {DataSourceAutoConfiguration.class})

Today in coding when it came to the question is obviously the configuration file is configured correctly but jpa is not able to automatically generate a table in the database automatically, investigation and waited a long time only to find the problem here ** (exclude = {DataSourceAutoConfiguration.class }) **, because this is our predecessors wrote the code so did not notice the startup class
exclude = {DataSourceAutoConfiguration.class} mean removal of some sort of automatic configuration, this is the database, it has been unable to automatically generate tables

Published 25 original articles · won praise 22 · views 3631

Guess you like

Origin blog.csdn.net/weixin_42443419/article/details/104346577