myeclipse2014中搭建SSH环境注意事项

1.一定要按照顺序搭建,即structs2-spring-建立数据库链接-hibernate。

2.选择合适的包:在配置structs2时记得选择spring包;而搭建spring时,只需要使用默认的包就可以。

3.在搭建hibernate之前必须先建立数据库链接。

4.记得搭建hibernate时将下面选项取消掉。

5.需要在hibernate配置文件中添加驱动,内容如下:

<property name="driverClassName" value="com.mysql.jdbc.Driver"></property>

位置如下:

6.URL改写:

localhost:3306/flowerdb?useUnicode=true&characterEncoding=utf-8

原文地址:https://www.cnblogs.com/FightingMan/p/5070401.html