best2018
2023-06-25 15:57:45
原证
SSH极简新闻发布管理系统
项目描述
SSH极简新闻发布管理系统,Struts、Hibernate、Spring整合实现新闻发布管理简单实例,供初学者学习!
运行环境
jdk8+tomcat6+mysql8+Eclipse
项目技术(必填)
spring1.2.8+struts1.0+hibernate3+jsp
数据库文件(可选)
链接: https://pan.baidu.com/s/14DxZGUs3ihuXzmT1-CgGWg?pwd=ardw 提取码: ardw
依赖包文件(可选)
位于工程WebContent/WEB-INF/lib文件夹下
资源包文件(可选)
位于工程WebContent文件夹下
运行视频(可选)
无
是否原创(转载必填原文地址)
原创
项目截图(必填)
运行截图(必填)
http://localhost:8080/NRS/
admin admin
发表新闻
注意事项(可选)
1、部署到tomcat进行启动测试,访问地址:http://localhost:端口/NRS
2、运行项目前,先通过news.sql文件创建数据库utf-8编码的数据库news
3、测试登录账号密码 admin/admin
4、jdbc连接配置异常,去掉zeroDateTimeBehavior=CONVERT_TO_NULL即可
严重: Servlet.service() for servlet action threw exception java.sql.SQLException: The connection property 'zeroDateTimeBehavior' only accepts values of the form: 'exception', 'round' or 'convertToNull'. The value 'CONVERT_TO_NULL' is not in this set. at com.mysql.jdbc.ConnectionProperties$ConnectionProperty.validateStringValues(ConnectionProperties.java:302) at com.mysql.jdbc.ConnectionProperties$StringConnectionProperty.initializeFrom(ConnectionProperties.java:509) at com.mysql.jdbc.ConnectionProperties$ConnectionProperty.initializeFrom(ConnectionProperties.java:202) at com.mysql.jdbc.ConnectionProperties.initializeProperties(ConnectionProperties.java:2340)
5、发表新闻或发表评论时,需要修改hibernate的xml配置为type='time'即可
java.sql.SQLException: Value '0000-00-00' can not be represented as java.sql.Timestamp com.mysql.jdbc.ResultSet.getNativeTimestamp(ResultSet.java:4108) com.mysql.jdbc.ResultSet.getTimestampInternal(ResultSet.java:5662) com.mysql.jdbc.ResultSet.getTimestamp(ResultSet.java:5320) com.mysql.jdbc.ResultSet.getTimestamp(ResultSet.java:5358) org.apache.commons.dbcp.DelegatingResultSet.getTimestamp(DelegatingResultSet.java:261) org.hibernate.type.TimestampType.get(TimestampType.java:28) org.hibernate.type.NullableType.nullSafeGet(NullableType.java:77) org.hibernate.type.NullableType.nullSafeGet(NullableType.java:68)
<property name="lastModifyDate" column="last_modify_date" not-null="true" type="time"> </property> <property name="postDate" column="post_date" not-null="true" type="time"> </property>
猜你喜欢
请下载代码后再发表评论
文件名:NRS.zip,文件大小:9377.203K
下载
- /
- /NRS
- /NRS/.classpath
- /NRS/.project
- /NRS/.settings
- /NRS/.settings/.jsdtscope
- /NRS/.settings/org.eclipse.jdt.core.prefs
- /NRS/.settings/org.eclipse.wst.common.component
- /NRS/.settings/org.eclipse.wst.common.project.facet.core.xml
- /NRS/.settings/org.eclipse.wst.jsdt.ui.superType.container
- /NRS/.settings/org.eclipse.wst.jsdt.ui.superType.name
- /NRS/src
- /NRS


最代码官方 LV167
8月27日