0
点赞
收藏
分享

微信扫一扫

Spring blunder

单调先生 2022-10-09 阅读 20


01

WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext()); 
testTpl = (SolrTemplate) wac.getBean("testTpl");

对应
build/classes/applicationContext.xml 的

<bean id="testTpl" class="org.springframework.data.solr.core.SolrTemplate">


举报

相关推荐

0 条评论