p:driverClassName="com.mysql.jdbc.Driver"
p:url="jdbc:mysql://localhost:3306/sampledb"
p:username="root"
p:password="11111"
/>
p表示對該bean裏面的屬性進行注入,格式爲p:屬性名=注入的對象 效果與在bean裏面使用<property>標籤一樣
/>
p表示對該bean裏面的屬性進行注入,格式爲p:屬性名=注入的對象 效果與在bean裏面使用<property>標籤一樣