java web 常见问题备忘
一:找不到maven加载的jar包
Right click the web project “properties” -------> click the “Deployment Assembly” ---->
Click add button
Choose Java Build Path Entires ---> click Next
Choose Maven Dependencies------> Finish
二:Cannot change version of project facet Dynamic Web Module to 2.5.
找到 .setting文件夹内的org.eclipse.wst.common.project.facet.core.xml文件,文件格式大致如下:
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Apache Tomcat v5.5"/>
<fixed facet="jst.web"/>
<fixed facet="jst.java"/>
<installed facet="jst.java" version="5.0"/>
<installed facet="jst.web" version="2.5"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
三:java.lang.NoClassDefFoundError: Could not initialize class com.infomorrow.util.Hibernate_Credit
hibernate 初始化失败,查看配置文件
四:hibernate save没有保存数据到数据库
hibernate 字段映射错误(不会报错)