1,pom.xml文件中要加入
<!-- 强制将xml文件打到war包中 s-->
<resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.*</include> </includes> </resource> <resource> <directory>src/main/webapp</directory> <targetPath>META-INF/resources</targetPath> <includes> <include>**/*.*</include> </includes> </resource> </resources>
把相应的xml,html等等编译到target目录中,否则运行报错!!!
2,使用generator工具的时候,注意不要添加如上信息,会导致路径不对!
3,在mysql中命令行使用set global time_zone='+8:00';(不用可能在使用生成工具时报错)
4,项目运行报错,说绑定无效,看博客
https://blog.csdn.net/RUIMENG061511332/article/details/82150587