В настоящее время я создаю многомодульный проект Maven с Spring и Hibernate. Я смущен, где мне нужно поставить spring-dispature.xml
для доступа к конфигурации компонента. В настоящее время существует [core-web][core-service(request mapping)][core-bal(bal layer)][core-dal(implementation layer)]
и [core-model(data access layer)]
.Конфигурация Spring Hibernate с проектом maven multi module
Я положил applicationContextBalUserProfile.xml
в core-bal
слой.
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context" xmlns="http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd">
<!--Scan Merchandising Rest Services for Beans Defined In this Context -->
<context:component-scan base-package="com.hrcs.bal.userProfile.impl">
</context:component-scan>
<bean id="loginDal" class="com.hrcs.dal.userProfile.impl.LoginDalImpl" />
Теперь, когда я должен поставить Просмотр Разрешитель?