JavaWeb
Geralt3
终生学习
展开
-
SpringMVC简单项目报错java.lang.ClassNotFoundException
发帖求助链接http://bbs.csdn.net/topics/392190768 注意事项:1.<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> 一行中不能加后缀.class,应写DispatcherServlet的全限定名。否则tomcat报错5...原创 2017-07-10 18:56:53 · 1289 阅读 · 0 评论 -
MyBatis向MySQL数据库中插入数据报错Field 'id' doesn't have a default value
利用MyBatis向MySQL数据库中插入数据报错Field 'id' doesn't have a default value参考文章http://blog.csdn.net/god8816/article/details/8593419得到解决方法:将MySQL中对应表的id字段设置为自增即可 ...原创 2017-07-11 22:17:54 · 26250 阅读 · 0 评论 -
MyBatis简单查询MySQL数据库报错(对实体 "characterEncoding" 的引用必须以 ';' 分隔符结尾)
MyBatis的全局配置文件SqlMapConfig.xml如下: <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE configurationPUBLIC "-//mybatis.org//DTD Config 3.0//EN""http://mybatis.org/dtd/mybatis-3-config.dtd...原创 2017-07-11 20:50:07 · 2135 阅读 · 0 评论 -
SpringMVC整合MyBatis 实现商品信息提交功能时报错Field error in object 'itemsCustom' on field 'createtime'
附上完整错误信息: org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errorsField error in object 'itemsCustom' on field 'createtime': rejected valu...原创 2017-07-16 15:18:03 · 9566 阅读 · 1 评论 -
SpringMVC 使用validation校验无法加载properties文件,及验证信息乱码的问题
今天在使用JSR-303 validation进行校验时出现了标题中的相关问题po类相关代码: @Size(min=1,max=30,message="{items.name.length.error}") private String name; @NotNull(message="{items.createtime.isNUll}") privat...原创 2017-07-17 19:44:34 · 5200 阅读 · 3 评论 -
MyBatis整合Spring过程中的报错
记录下MyBatis整合Spring时用JUnit测试过程中出现的错误,只附上主要报错信息首先是:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [spring/applicat...原创 2017-07-15 12:25:02 · 1294 阅读 · 0 评论 -
Maven项目报错Failed to execute goal org.apache.maven.plugins
在运行Maven项目时报错 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project taotao-manager-web: Failed to clean project: Failed to delete E:\JAVA...原创 2017-07-23 16:35:54 · 3488 阅读 · 1 评论