随笔分类 -  排错总结

摘要:1、栈溢出异常 解决问题 1、报错信息(java.lang.StackOverflowError) 只有这一句没有更多的信息了,Mybatis查询数据库出现的问题 问题会在Serviceimpl和接口对应的Mapper 我的问题在Serviceimpl 错误示范: public List<Books 阅读全文
posted @ 2020-09-28 11:05 Spring_Xian 阅读(952) 评论(0) 推荐(0)
摘要:汇总问题 xml资源扫描问题,WEB没有lib目录没有导包,路径问题post跳转不到,中文乱码 1、xml资源扫描问题(找不到xml文件) <build> <resources> <resource> <directory>src/main/java</directory> <includes> < 阅读全文
posted @ 2020-09-26 18:52 Spring_Xian 阅读(191) 评论(0) 推荐(0)
摘要:String sql="select * from t_dept where id = ? and name = ?"; PreparedStatement ps=conn.prepareStatement(sql); ps.setInt(1,id); ps.setString(2,name); S 阅读全文
posted @ 2020-09-26 12:38 Spring_Xian 阅读(323) 评论(0) 推荐(0)
摘要:第一种方案 修改form表单提交的地址 把 <form action="/logon">改为 <form action="${pageContext.request.contextPath}/logon"> 第二种方案 点开Tomcat 点击编辑配置 点Deployment 把下面的applicat 阅读全文
posted @ 2020-09-26 12:22 Spring_Xian 阅读(669) 评论(0) 推荐(0)
摘要:尴尬 书写不规范 <aop:config> <!--第二种方式:使用AOP的标签实现--> <aop:aspect ref="diy"> <aop:pointcut id="diyPointCut" expression="execution(* com.xian.service.UserServi 阅读全文
posted @ 2020-09-23 17:51 Spring_Xian 阅读(1232) 评论(0) 推荐(0)
摘要:大段大段的报错就不复制了,报错的最后有这样的一段话就说明有问题 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns 阅读全文
posted @ 2020-09-23 14:32 Spring_Xian 阅读(1001) 评论(0) 推荐(0)
摘要:报错 >java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the rig 阅读全文
posted @ 2020-07-06 19:26 Spring_Xian 阅读(3313) 评论(0) 推荐(0)
摘要:<!-- <select id="Limit" resultMap="com.xian.pojo.User" parameterType="map">--><!-- select * from testdb.test001 limit #{index},#{end}--><!-- </select> 阅读全文
posted @ 2020-07-06 10:56 Spring_Xian 阅读(261) 评论(0) 推荐(0)
摘要:<build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includ 阅读全文
posted @ 2020-07-01 19:13 Spring_Xian 阅读(1624) 评论(0) 推荐(1)