XML ERROR: adding the element "task: executor"

0

Thank you in advance for your help, in an XML file I try to associate a new element like this:

<task:executor id="example" pool-size="10"/>

The error is as follows:

Caused by: org.xml.sax.SAXParseException; lineNumber: ###; columnNumber: ###; El prefijo "task" para el elemento "task:executor" no está enlazado.
    
asked by MrDev 06.11.2016 в 16:37
source

1 answer

0

Reviewing the Xml I found that it was necessary to declare in:

xsi:schemaLocation

The following fragment to import:

http://www.springframework.org/schema/task 
http://www.springframework.org/schema/task/spring-task-3.0.xsd

and before xsi: schemaLocation in the xmlns: XXXX declare:

xmlns:task="http://www.springframework.org/schema/task"
    
answered by 06.11.2016 / 16:40
source