1.Bean的id为sessionFactory,对应的类为AnnotationSessionFactory,即采用注解的形式实现hibernate。2.hibernateProperties,配置hibernate的属性1)hibernate.dialect,配置Hibernate方言,可以让Hi...
分类:
移动开发 时间:
2015-04-18 20:27:18
阅读次数:
300
Spring的使用Spring配置文件是用于指导Spring工厂进行Bean生产、依赖关系注入(装配)及Bean实例分发的"图纸"。Java EE程序员必须学会并灵活应用这份"图纸"准确地表达自己的"生产意图"。Spring配置文件是一个或多个标准的XML文档,applicationContext....
分类:
编程语言 时间:
2015-04-18 14:19:02
阅读次数:
150
1、错误描述
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:99)
at...
分类:
移动开发 时间:
2015-04-17 23:51:39
阅读次数:
284
applicationContext.xml 1 2 3 4 5 6 7 ...
分类:
编程语言 时间:
2015-04-17 07:04:50
阅读次数:
172
需要的jar包以poi开头的jar包都是必须的web.xmlcontextConfigLocationclasspath:/conf/applicationContext.xmlorg.springframework.web.context.ContextLoaderListenerbaobaota...
分类:
编程语言 时间:
2015-04-16 17:29:23
阅读次数:
202
方式一: ?在Spring的"applicationContext.xml"中的dataSource bean定义 <bean?id="dataSource"
????class="org.logicalcobwebs.proxool.ProxoolDataSource">
????<property?name="driver">
?????...
分类:
编程语言 时间:
2015-04-15 15:11:09
阅读次数:
203
【配置Spring并测试】 引入Spring包,编写applicationContext.xml文件,该文件放在src目录下 建立domain包,编写雇员类Employee.java Employee.java中 public class Employee { private Integer id;...
分类:
编程语言 时间:
2015-04-15 11:15:00
阅读次数:
347
转自:http://blog.csdn.net/ysughw/article/details/8992322ContextLoaderListener监听器的作用就是启动Web容器时,自动装配ApplicationContext的配置信息。因为它实现了ServletContextListener这个...
分类:
其他好文 时间:
2015-04-13 12:17:28
阅读次数:
139
1、错误描述
四月 12, 2015 2:17:54 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring FrameworkServlet 'appServlet'
四月 12, 2015 2:17:56 下午 org.apache.catalina.core.StandardContext rel...
分类:
编程语言 时间:
2015-04-13 00:28:36
阅读次数:
396
contextConfigLocation classpath:/applicationContext.xml classpath:/applicationContext-security.xml o...
分类:
编程语言 时间:
2015-04-12 14:39:36
阅读次数:
121