我用 System.out.println()输出的中文都是乱码,但是我自己写了个测试类输出是正常的,有没有大神知道为什么啊
2016-09-28
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
2016-09-28
NotWritablePropertyException: Invalid property 'sessionFactory' of bean class [dao.ProductDao]: Bean property 'sessionFactory' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? 为什么我会报这个错误啊?
2016-09-25
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productDao' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.
2016-09-25
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productService' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'productDao' while setting bean property 'productDao'; nested exception is
2016-09-25