Jdea2027 Spring4+hibernate5+struts2 常见错误 - localhost'
1、Not supportes by BasicDataSource
将数据库配置class="org.apache.commons.dbcp.BasicDataSource"换成
class="com.mchange.v2.c3p0.ComboPooledDataSource"
2、ssh集成dataSource配置无效的问题 -Access denied for user 'sa'@'localhost'
https://www.iteye.com/blog/19841026-2160555https://www.iteye.com/blog/19841026-2160555
3、org.hibernate.LazyInitializationException: could not initialize proxy - no Session
将DAO中的load方法换成get可作测试用。
4、
????
5、Unknown table 'SYSTEM_SEQUENCES' in information_schema
6、 Duplicate entry '11' for key 't_user.PRIMARY'
检查数据库表中实体名与代码的是否一至
对于Date类,如下设置,否则也会报上面的错 拼多多帮助力入口
或设置自增策略
7、Intellij IDEA配置Struts开发环境出现Cannot resolve Struts Package "struts default",Jdea2027