개발 오류

[Spring] Error 일치하는 와일드 카드 문자가 엄격하게 적용되지만 'task:executor' 요소에 대한 선언을 찾을 수 없습니다.

dev.mk 2021. 11. 6. 20:47
반응형

일치하는 와일드 카드 문자가 엄격하게 적용되지만 'task:executor' 요소에 대한 선언을 찾을 수 없습니다.

 

aop로 트랜잭션 설정할때 이런 에러가 나서 봤는데

상단에 beans xmlns 부분에  아래의 내용을 추가해야 한다.

xsi:schemaLocation="http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-4.1.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-4.0.xsd"   

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:aop="http://www.springframework.org/schema/aop"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
				http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
				http://www.springframework.org/schema/tx
                http://www.springframework.org/schema/tx/spring-tx-4.1.xsd
                http://www.springframework.org/schema/aop
                http://www.springframework.org/schema/aop/spring-aop-4.0.xsd">

FULL SOURCE 참고

반응형