本月博客排行
年度博客排行
-
第1名
宏天软件 -
第2名
龙儿筝 -
第3名
青否云后端云 - wallimn
- vipbooks
- gashero
- wy_19921005
- benladeng5225
- fantaxy025025
- zysnba
- ssydxa219
- javashop
- e_e
- sam123456gz
- arpenker
- tanling8334
- kaizi1992
- xpenxpen
- xiangjie88
- wiseboyloves
- ganxueyun
- lemonhandsome
- xyuma
- sichunli_030
- wangchen.ily
- jh108020
- zxq_2017
- jbosscn
- Xeden
- zhanjia
- johnsmith9th
- forestqqqq
- luxurioust
- lzyfn123
- ajinn
- nychen2000
- wjianwei666
- daizj
- 喧嚣求静
- ranbuijj
- silverend
- kingwell.leng
- lchb139128
- kristy_yy
- lich0079
- jveqi
- java-007
- sunj
- yeluowuhen
- lerf
最新文章列表
ApplicationContext 配置与使用
首先,在web.xml文件中配置:
<listener>
<listener-class> org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
或者:
<servlet>
<servlet-na ...
org.springframework.beans.factory.BeanCreationException
1,问题现象org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in ServletContext resource [/WEB-INF/classes/config/applicationContext.xml]: Invocati ...
OpenSessionInViewFilter 配置解决延迟加载
一、手动加载 如:
Hibernate.initialize(obj.getUser());//加载用户对象
二、使用OpenSessionInViewFilter 配置解决延迟加载 如:
<!--OpenSessionInViewFilter 解决延迟加载问题 -->
<filter>
<filter-name>OpenSessionInViewFilter ...
No setter found for property 'templateLoaderPath'
<bean id="freemarderConfig"
class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer">
<property name="templateLoaderPath" value=" ...