Maven搭建MyEclipse10+Struts2.1+Spring3.3+Hibernate3.3全注解(14)
发布时间:2021-06-05
发布时间:2021-06-05
Maven搭建MyEclipse10+Struts2.1+Spring3.3+Hibernate3.3全注解框架
2. applicationContext.xml文件配置 <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="/schema/beans" xmlns:xsi="/2001/XMLSchema-instance" xmlns:context="/schema/context" xmlns:aop="/schema/aop" xmlns:tx="/schema/tx" xsi:schemaLocation="
/schema/beans
/schema/beans/spring-beans.xsd /schema/context
/schema/context/spring-context.xsd /schema/aop
/schema/aop/spring-aop.xsd /schema/tx
/schema/tx/spring-tx.xsd"> <bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> <property name="configLocation" value="classpath:hibernate.cfg.xml"> </property> <property name="packagesToScan" value="org.inscribe.farsighted.model" /> </bean>
上一篇:音视频即时通讯发展走势