摘要: springmvc无法访问js、css、jpg等资源文件,tomcat启动报警告如下[org.springframework.web.servlet.PageNotFound] - No mapping found for HTTP request with URI [/ssm/jquery-eas... 阅读全文
posted @ 2015-10-20 15:54 旋转的梦 阅读(16635) 评论(0) 推荐(0)
摘要: 数据库用的是MYSQL,User表主键id未设置自动增长,insert报错Field'id'doesn'thaveadefaultvalue设置自动增长即可。 阅读全文
posted @ 2015-10-20 11:21 旋转的梦 阅读(264) 评论(0) 推荐(0)
摘要: 在数据库连接URL后加上characterEncoding=UTF-8driver=com.mysql.jdbc.Driverurl=jdbc:mysql://localhost:3306/ssm?characterEncoding=UTF-8username=rootpassword=123456 阅读全文
posted @ 2015-10-20 11:12 旋转的梦 阅读(162) 评论(0) 推荐(0)
摘要: 在测试类上加上@RunWith,和@ContextConfiguration@RunWith(SpringJUnit4ClassRunner.class)@ContextConfiguration(locations={"classpath:spring-mybatis.xml"})public c... 阅读全文
posted @ 2015-10-20 10:04 旋转的梦 阅读(154) 评论(0) 推荐(0)