- 博客(3)
- 收藏
- 关注
原创 mybatis的mapper配置文件中的一些细节问题
1、IDEA在打包时不会自动把src/main/java下的配置文件打包到resources中,所以会碰到Invalid bound statement (not found)错误,只需将配置文件写在resources中,或者在pom.xml中加入以下代码2、在IDEA中编辑时,namespace写包名是会报Cannot find class的错误的,要把接口名也写上;3、使用list进行批量插入时,collection不能写list,而是要写当前list类型参数的变量名。
2017-02-16 14:44:01
745
原创 Tomcat启动过程中报错,servlet-api冲突
使用maven管理项目依赖jar包时,有可能会遇到Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run (default-cli) on project esunny: Could not start Tomcat: Failed to start component [StandardServer[-1]]:错误,这是因为在pom.xml文件中引入了servlet-api依赖,而Tomcat自带的有ser
2017-01-19 13:43:02
3579
原创 IDEA启动tomcat显示build success但无法继续启动的解决方法
在项目没有打成war包时,tomcat默认无法启动。解决方法是:告诉Tomcat插件,当前不是使用war包装。在pom.xml的tomcat plugin的configuration中加入<ignorePackaging>true</ignorePackaging>,即告诉tomcat启动时忽略当前是否有war包,再次运行tomcat7:run命令,tomcat即可正常启动。
2017-01-18 14:43:07
9527
9
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人