![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
文章平均质量分 56
iteye_18141
这个作者很懒,什么都没留下…
展开
-
Spring中加载ApplicationContext.xml文件的方式【转】
1.利用ClassPathXmlApplicationContext 可以从classpath中读取XML文件(1)ApplicationContext context = newClassPathXmlApplicationContext("applicationContext.xml"); UserDaouserDao = (UserDao)context.getBea...原创 2012-03-02 10:08:54 · 86 阅读 · 0 评论 -
Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTup
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionfactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method ...原创 2012-03-02 14:50:46 · 84 阅读 · 0 评论 -
The request sent by the client was syntactically incorrect
解决 spring mvc 下post json出现HTTP Status 400 The request sent by the client was syntactically incorrect 当你觉得你的配置一切正常,并且无数次检查了请求json参数与javabean都是一致的,但就是报上面的错的时候,那你可能遇到跟我一样的问题。 跟踪Spring执行@RequestB...原创 2015-11-16 16:27:18 · 169 阅读 · 0 评论 -
Sping注解连接出错:No Session found for current thread
Sping3+Hibernate4整合使用全注解方式时,查数据时总是出错:No Session found for current thread。web.xml中也加了如下配置,但是还是不行。<filter> <filter-name>openSessionInViewFilter</filter-name> <filter-class>o...原创 2014-05-04 13:55:52 · 154 阅读 · 0 评论