总结:
导包错误
缺失jar包
名称拼写错误(编译器找不到相关变量/方法/…)
The type List is not generic; it cannot be parameterized with arguments 1
导包错误
import java.util.List;
Property ‘driverClassName’ threw exception; nested exception is java.lang.IllegalStateException: Could not load JDBC driver class [com.mysql.jdbc.Driver]
缺失mysql-connector-java-5.1.12-bin.jar
setter依赖注入未实例化
setter方法书写错误
配置文件中相关代码的ref参数错误
Duplicate modifier for the method XXXX in type XXXX
标识符重复
可能是输入了两个public…
java.lang.StringBuffer.append(java.lang.String)’ on a null object reference2
空指针异常,
null等空数据在转为toString的时候,经常会报错。3
必须:StringBuffer s = new StringBuffer();