我是靠谱客的博主 无辜红牛,这篇文章主要介绍idea搭建项目注意事项,现在分享给大家,希望可以做个参考。

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

转载于:https://www.cnblogs.com/wskb/p/11570988.html

最后

以上就是无辜红牛最近收集整理的关于idea搭建项目注意事项的全部内容,更多相关idea搭建项目注意事项内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(119)

评论列表共有 0 条评论

立即
投稿
返回
顶部