|
From: lsk <liu...@gm...> - 2012-07-26 07:49:54
|
Hi all :
I just want to chang the XML root node name like this :
<?xml version="1.0" encoding="UTF-8"?>
<mango xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="
http://www.mycompany.com/schema/mango" xmlns:beans="
http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.mycompany.com/schema/mango
http://www.mycompany.com/schema/mango.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd ">
<beans:bean id="helloService"
class="com.mycompany.service.HelloService" />
</mango>
I have been created a NamespaceHandler named MangoNamespaceHandler to
process the <mango> element
after my ApplicationContext started up , when i get bean helloService,
return NoSuchBeanDefinitionException
how to change the xml root node <beans> to my custom <mango> ?
many thanks !!
lsk
|