After Spring Boot configures Mysql, table cannot be generated based on java entity class

https://www.imooc.com/qadetail/193270?t=292816

Checked for two days and found no problem. The reason is that the entity class must be under the package or subpackage of the same name of the main program application, and it will not be scanned until startup. FUCK!

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325458354&siteId=291194637