前景概述:

为凤泉等地区用户提供了全套网页设计制作服务,及凤泉网站建设行业解决方案。主营业务为做网站、成都网站制作、凤泉网站设计,以传统方式定制建设网站,并提供域名空间备案等一条龙服务,秉承以专业、用心的态度为用户提供真诚的服务。我们深信只要达到每一位用户的要求,就会得到认可,从而选择与我们长期合作。这样,我们也可以走得更远!
表user_info中created_time 设计为:
created_time timestamp not null default current_timestamp;
java插入数据时没有填写createdTime字段
就抛出
Cause: java.sql.SQLException: The connection property 'zeroDateTimeBehavior' only accepts values of the form: 'exception', 'round' or 'convertToNull'. The value 'convertToNull ' is not in this set.
原因在这里:注意url的value值的最后有一个空格
<environments default="development"> <environment id="development"> <transactionManager type="JDBC"/> <dataSource type="POOLED"> <property name="driver" value="com.MySQL.jdbc.Driver"/> <property name="url" value="jdbc:mysql://localhost:3306/foretaste?zeroDateTimeBehavior=convertToNull "/> <property name="username" value="root"/> <property name="password" value="mysql123"/> </dataSource> </environment> </environments>
去掉这个空格就可以了.