Home > Books > Defining Bean Properties by Shortcut

Defining Bean Properties by Shortcut

    Spring supports a shortcut for specifying the value of a simple type property. You can present a value attribute in the <property> element instead of enclosing a <value> element inside.

    Since Spring 2.0 another convenient shortcut to define properties was added. It consists of using the p schema to define bean properties as attributes of the <bean> element. This can shorten the lines of XML configuration.

Categories: Books
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment