Configuring spring controller properties partially with annotation in class and partially in config xml -


is possible define few properties of spring controller annotation in class , few other properties in spring-servlet.xml. can use both annotations , xml config file same controller or use either of two.i.e. example,

@controller   @command name annotation   //some properties   public class controller   {  } 

and in servlet.xml:

<bean id="controller" class = "the classpath"> <property name="someotherproperty" value="somevalue1"></property> <property name="someotherproperty" value="somevalue2"></property> </bean> 

you don't want that, because mess up. code, have problem finding right configuration specific part of project.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -