패키지 추가 및 설정
-com.vam.model / com.vam.mapper / com.vam.service 추가 - root-context.xml 에 해당 패키지 인식할 수 있도록 태구 추가
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:context="http://www.springframework.org/schema/context"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
xmlns:mybatis-spring="http://mybatis.org/schema/mybatis-spring"
|
||||
xsi:schemaLocation="http://mybatis.org/schema/mybatis-spring http://mybatis.org/schema/mybatis-spring-1.2.xsd
|
||||
http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd">
|
||||
|
||||
<bean id="hikariConfig" class="com.zaxxer.hikari.HikariConfig">
|
||||
@@ -24,5 +26,9 @@
|
||||
|
||||
<context:component-scan base-package="com.vam.sample"></context:component-scan>
|
||||
|
||||
<mybatis-spring:scan base-package="com.vam.mapper"/>
|
||||
<context:component-scan base-package="com.vam.model"></context:component-scan>
|
||||
<context:component-scan base-package="com.vam.service"></context:component-scan>
|
||||
|
||||
|
||||
</beans>
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:context="http://www.springframework.org/schema/context"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
xmlns:mybatis-spring="http://mybatis.org/schema/mybatis-spring"
|
||||
xsi:schemaLocation="http://mybatis.org/schema/mybatis-spring http://mybatis.org/schema/mybatis-spring-1.2.xsd
|
||||
http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd">
|
||||
|
||||
<bean id="hikariConfig" class="com.zaxxer.hikari.HikariConfig">
|
||||
@@ -23,5 +25,9 @@
|
||||
</bean>
|
||||
|
||||
<context:component-scan base-package="com.vam.sample"></context:component-scan>
|
||||
|
||||
<mybatis-spring:scan base-package="com.vam.mapper"/>
|
||||
<context:component-scan base-package="com.vam.model"></context:component-scan>
|
||||
<context:component-scan base-package="com.vam.service"></context:component-scan>
|
||||
|
||||
</beans>
|
||||
|
||||
Reference in New Issue
Block a user