<bean id="名前" class="クラス">
<property name="プロパティ名" value="値" />
……必要なだけ<property>を用意……
</bean>
※リストが表示されない場合
AddBlockなどの広告ブロックツールがONになっているとリストなどが表示されない場合があります。これらのツールをOFFにしてみてください。
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <bean id="bean1" class="com.tuyano.libro.SampleBean"> <property name="message" value="Hello, this is Bean Sample!!" /> </bean> </beans>
<< 前へ | 次へ >> |