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.
Comments
Post a Comment