p-spring simplified namespace attribute dependency setter method of injection

To simplify the setter method, by previously <property> injection, the use of naming attributes P, <bean id = "" class = "" p: attribute name = "normal value" p: attribute name = -REF "reference value">. However, this method used in enterprise development is relatively small. Some Lunatic Fringe is something you do not like to buy and sell, so we know this stuff can be.

As shown, before implementing p namespace, do a little thing. Required front p, p back can be changed to another name.

 

Guess you like

Origin www.cnblogs.com/kjitboy/p/12067669.html