java - Declaring scope for a bean -


my code:

<?xml version="1.0" encoding="utf-8" standalone="no"?> <!doctype beans public "-//spring//dtd bean //en" http://www.springframework.org/dtd/spring-beans.dtd"> <beans>     <bean id="person" class = "org.dalai.listpers.person"  scope = "singleton">                      </bean> </beans> 

i think doing right, anyway error on line 4 :

attribute "scope" must declared element type "bean"

any hints how solve appreciated

the scope attribute supported in spring 2.0, , have using correct dtd/schema.

you can refere below link same.

http://forum.spring.io/forum/spring-projects/aop/22379-why-does-scope-attribute-cause-xml-parsing-exception


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

python - Specify path of savefig with pylab or matplotlib -

html - grunt SVG to webfont -