03 2019 档案

摘要:1.SpringMVC.xml文件加这个 2.controller 定时任务 阅读全文
posted @ 2019-03-31 16:11 若冲 阅读(228) 评论(0) 推荐(0)
摘要:<bean id="utf8Charset" class="java.nio.charset.Charset" factory-method="forName"> <constructor-arg value="UTF-8"/></bean><mvc:annotation-driven> <mvc: 阅读全文
posted @ 2019-03-21 22:24 若冲 阅读(701) 评论(0) 推荐(0)
摘要:在spring-mvc后面加上这个, 也可以在 阅读全文
posted @ 2019-03-21 22:21 若冲 阅读(696) 评论(0) 推荐(0)
摘要:[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.6:generate (default-cli) on project maventest: Execution defau 阅读全文
posted @ 2019-03-15 10:47 若冲 阅读(591) 评论(0) 推荐(0)
摘要:经常我们会运行sql时会报sql语句出错,经常看半天发现sql语法没有错,后来发现是表名是关键字,例如group、user导致了sql出错 下次出错,一定要注意关键字 解决办法: group两边加上·,就是esc下面那个键·,数字1左边那个·,变成·group·就好了 阅读全文
posted @ 2019-03-12 16:30 若冲 阅读(229) 评论(0) 推荐(0)
摘要:解决办法,逆工程没有添加对应的映射包路径,加好就可以了,mybatis.xml中添加 阅读全文
posted @ 2019-03-12 16:18 若冲 阅读(2327) 评论(0) 推荐(1)
摘要:解决办法 后来发现是UserMapper.xml配置错了 阅读全文
posted @ 2019-03-11 10:42 若冲 阅读(734) 评论(0) 推荐(0)
摘要:There is no Action mapped for namespace [/] and action name [/select] associated with context path []. action的访问,我们采用了动态方法调用的方式来访问,也就是使用叹号“!”,有些需求是需要跳 阅读全文
posted @ 2019-03-10 18:20 若冲 阅读(614) 评论(0) 推荐(0)
摘要:hibernate查询表数量count 阅读全文
posted @ 2019-03-07 21:23 若冲 阅读(1392) 评论(0) 推荐(0)
摘要:朋友整合ssh时突然报错, 第一反应是去看web.xml,发现struts2的preParedAndExecuteFilter中url-patternxie错了,原来是/*,action,应该改成 *。action或/* 后来发现是maven里面,默认加的junit,因为疏忽加了两个,全部删掉就好了 阅读全文
posted @ 2019-03-07 12:56 若冲 阅读(183) 评论(0) 推荐(0)
摘要:需要自己手动添加 如 阅读全文
posted @ 2019-03-06 13:20 若冲 阅读(275) 评论(0) 推荐(0)
摘要:如果是默认状态 会过滤掉css和js文件,改成这样可以解决 阅读全文
posted @ 2019-03-06 13:16 若冲 阅读(852) 评论(0) 推荐(1)
摘要: 阅读全文
posted @ 2019-03-06 12:59 若冲 阅读(215) 评论(0) 推荐(0)
摘要:org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session i 阅读全文
posted @ 2019-03-05 20:11 若冲 阅读(495) 评论(0) 推荐(0)
摘要:idea maven列表有问题的,覆盖 C:\Users\用户名\.IntelliJIdea2017.2\system\Maven\Indices路径大致在这里 文件为 Indices.rar 不知道怎么上传网址,只能发个文件名了 C:\Users\用户名\.IntelliJIdea2017.2\s 阅读全文
posted @ 2019-03-05 11:38 若冲 阅读(256) 评论(0) 推荐(0)
摘要:Exception in thread "main" org.springframework.aop.AopInvocationException: Null return value from advice does not match primitive return type for: pub 阅读全文
posted @ 2019-03-04 21:13 若冲 阅读(1624) 评论(0) 推荐(1)