亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

我按照老師的配置一步一步來,一運行服務器就出現這個異常怎么解決啊

我按照老師的配置一步一步來,一運行服務器就出現這個異常怎么解決啊

你已走遠 2016-11-20 00:32:16
嚴重:?Exception?sending?context?destroyed?event?to?listener?instance?of?class?org.springframework.web.context.ContextLoaderListener Caused?by:?org.springframework.beans.factory.parsing.BeanDefinitionParsingException:?Configuration?problem:?<property>?element?for?property?'hibernateProperties'?must?specify?a?ref?or?value java.lang.IllegalStateException:?BeanFactory?not?initialized?or?already?closed?-?call?'refresh'?before?accessing?beans?via?the?ApplicationContext at?org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:170) at?org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1033) at?org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1009) at?org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:961) at?org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:581) at?org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:116) at?org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4775) at?org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5385) at?org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
查看完整描述

3 回答

?
大咪

TA貢獻785條經驗 獲得超332個贊

說的是你這個property里的元素hibernateProperties必須是一個引用或者是一個值……你自己在查查有沒有哪里拼錯了
查看完整回答
1 反對 回復 2016-11-20
  • 你已走遠
    你已走遠
    謝謝啊,已經找到錯誤了,但是為什么我走到最后一步運行服務器,添加商品時 商品的pid為空,有點無解, <hibernate-mapping> <class name="org.muke.ssh.entity.Product" table="product"> <id name="pid" column="pid"> <generator class="native"/> </id> <property name="pname" column="pname" length="20"/> <property name="price" column="price"/> </class> </hibernate-mapping>
  • 慕桂英6674691
    慕桂英6674691
    你把錯誤說出來啊
  • 慕桂英6674691
    慕桂英6674691
    解決方法
點擊展開后面1
?
玄鑒

TA貢獻16條經驗 獲得超4個贊

?BeanFactory?not?initialized?or?already?closed?-?call?'refresh'?before?accessing?beans?via?the?ApplicationContext


這個怎么解決的?

查看完整回答
反對 回復 2016-11-21
?
YOUL0

TA貢獻2條經驗 獲得超0個贊

好復雜,看不懂~~

查看完整回答
反對 回復 2016-11-20
  • 3 回答
  • 0 關注
  • 2326 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號