SEC-904: Moved test module out of sandbox
This commit is contained in:
parent
959cdd8335
commit
6a68a2531c
|
@ -16,18 +16,16 @@
|
||||||
|
|
||||||
<bean id="AllPropertiesConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
<bean id="AllPropertiesConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
||||||
<property name="location" value="classpath:jdbc.properties"/>
|
<property name="location" value="classpath:jdbc.properties"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<tx:annotation-driven transaction-manager="transactionManager" />
|
<tx:annotation-driven transaction-manager="transactionManager" />
|
||||||
|
|
||||||
<bean id="userDAO" class="sample.dao.impl.UserDAOImpl"/>
|
<bean id="userDAO" class="sample.dao.impl.UserDAOImpl"/>
|
||||||
|
|
||||||
<bean id="daoUserService" class="sample.service.impl.UserServiceImpl">
|
<bean id="daoUserService" class="sample.service.impl.UserServiceImpl"/>
|
||||||
<property name="userDAO" ref="userDAO"/>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
<bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor">
|
<bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor">
|
||||||
<!-- property name="order" value="0"/ -->
|
<!-- property name="order" value="0"/ -->
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
|
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
|
||||||
|
|
|
@ -9,14 +9,24 @@
|
||||||
<b:beans xmlns="http://www.springframework.org/schema/security"
|
<b:beans xmlns="http://www.springframework.org/schema/security"
|
||||||
xmlns:b="http://www.springframework.org/schema/beans"
|
xmlns:b="http://www.springframework.org/schema/beans"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xmlns:aop="http://www.springframework.org/schema/aop"
|
||||||
|
xmlns:context="http://www.springframework.org/schema/context"
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
||||||
|
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
|
||||||
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
|
||||||
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.2.xsd">
|
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.2.xsd">
|
||||||
|
|
||||||
<!--b:import resource="appContext-misc.xml"/-->
|
<!--b:import resource="appContext-misc.xml"/-->
|
||||||
|
<context:component-scan base-package='sample'/>
|
||||||
|
|
||||||
<!-- global-method-security secured-annotations="enabled" access-decision-manager-ref="methodAccessMgr"/ -->
|
<global-method-security secured-annotations="enabled" access-decision-manager-ref="methodAccessMgr">
|
||||||
|
<protect-pointcut expression="execution(* sample.service.UserService+.*(..))"
|
||||||
|
access="ROLE_LOGGEDIN" />
|
||||||
|
</global-method-security>
|
||||||
|
|
||||||
<b:bean id="methodAccessmanager" class="org.springframework.security.vote.AffirmativeBased">
|
<aop:aspectj-autoproxy/>
|
||||||
|
|
||||||
|
<b:bean id="methodAccessMgr" class="org.springframework.security.vote.AffirmativeBased">
|
||||||
<b:property name="decisionVoters">
|
<b:property name="decisionVoters">
|
||||||
<b:list>
|
<b:list>
|
||||||
<b:bean class="sample.TestVoter"/>
|
<b:bean class="sample.TestVoter"/>
|
||||||
|
|
|
@ -3,6 +3,6 @@ jpa.generateDdl=true
|
||||||
jpa.showSql=true
|
jpa.showSql=true
|
||||||
|
|
||||||
jdbc.driver=org.hsqldb.jdbcDriver
|
jdbc.driver=org.hsqldb.jdbcDriver
|
||||||
jdbc.url=jdbc:hsqldb:res:/database/heavyduty
|
jdbc.url=jdbc:hsqldb:mem:heavyduty
|
||||||
jdbc.username=sa
|
jdbc.username=sa
|
||||||
jdbc.password=
|
jdbc.password=
|
Loading…
Reference in New Issue