マイ春ライブラリ:3.2.0取得中にエラー
XMLファイル:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:security="http://www.springframework.org/schema/security"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.2.xsd">
<bean id = "res_Bean" class = "Restaurant"
<property name="welcomeNote" value="welcome to my restaurant"/>
</bean>
</beans>
イム解決しようとしたが、イムが正しいANSを得ていません。スレッド内
例外「メイン」java.lang.IllegalStateException: たBeanFactoryを初期化したり、既に閉じられていない - org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactoryでのApplicationContextを経由して 豆にアクセスする前に、「リフレッシュ」と呼びますTestSpring.mainで org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1117)で(AbstractRefreshableApplicationContext.java:172) (TestSpring.java:12)
方法について
:12' –
はmainメソッドを示してください。 – boycod3
メインメソッドコードhttp://ideone.com/SJpSrR –