Adding a new namespace declaration to spring configuration using spring IDE

I have a Spring spring -idol.xml configuration file with the following namespace declaration:

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

     ....

</beans>

I want to add a namespace declaration for AOP

<?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"
xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/aop 
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">

    ...

</beans>

Is there a way to do this using the Spring IDE? Right now, the only way I can think of is to create a new Spring configuration file with the aop namespace declaration, and then copy and paste the declaration from there into the configuration file where my beans is located.

+3
source share
1 answer

Open with -> Spring Config Editor . - " ", . aop, context, util, batch ..

. -w760 > (, apache cxf), Open with -> XML Editor edit namespaces

+6

Source: https://habr.com/ru/post/1722553/


All Articles