
SSH
蛋焊工
搬砖小学生
展开
-
配置hibernate.cfg.xml
jdbc:mysql://localhost:3306/test org.hibernate.dialect.MySQLDialect root 123456 com.mysql.jdbc.Driver -->原创 2017-03-01 16:40:11 · 279 阅读 · 0 评论 -
Struts2.5+Spring4.3+Hibernate5搭建
一.新建maven项目 1.新建maven项目 点击next, 点击finish,此时的项目为maven项目,不是maven项目,所以现在把maven转为web项目 2.maven转为web项目 鼠标右击项目名后点击properties选项,找到project Facets勾选Dynamic Web Module和javascript选项 点击apply 点击o原创 2017-07-18 09:56:54 · 2794 阅读 · 0 评论 -
Struts学习笔记
1、如何修改Struts2动作的后缀扩展名 <constant name="struts.action.extension" value=".html"/> value就是.html 还可以 设置为空就是无后缀 2、ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndE...原创 2017-09-26 15:27:34 · 208 阅读 · 0 评论 -
Hibernate保存对象时,数据库出现乱码
1.配置XML文件中的,数据库连接添加编码方式 (注意:在xml配置文件中配置数据库url时,要使用&的转义字符也就是&amp代替&;) 但在config.properties文件中使用&就行了...原创 2017-07-17 17:58:16 · 352 阅读 · 0 评论