第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

import spring-dao.xml后Spring容器出問(wèn)題,不能創(chuàng)建realm的bean

嚴(yán)重: Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in class path resource [spring/spring.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in class path resource [spring/spring.xml]: Cannot resolve reference to bean 'realm' while setting bean property 'realm'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'realm': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.jdbc.core.JdbcTemplate] for bean with name 'jdbcTemplate' defined in class path resource [spring/spring-dao.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.jdbc.core.JdbcTemplate

似乎是jdbc這里出問(wèn)題了?

正在回答

4 回答

是不是spring-dao.xml這個(gè)配置文件寫(xiě)錯(cuò)了。

<bean?class="com.alibaba.druid.pool.DruidDataSource"?id="dataSource">


0 回復(fù) 有任何疑惑可以回復(fù)我~

我也是這個(gè)錯(cuò)誤,解決不了...

0 回復(fù) 有任何疑惑可以回復(fù)我~

我的錯(cuò)誤跟你一樣的

我的這樣解決不了

0 回復(fù) 有任何疑惑可以回復(fù)我~

https://img1.sycdn.imooc.com//5b540cbc0001789f12410406.jpg

解決了,果然看報(bào)錯(cuò)還是有用的,沒(méi)JDBC,肯定是沒(méi)加進(jìn)去

一看artifacts,果然沒(méi)加,要把這兩個(gè)put into /WEB-INF/lib里面去(感覺(jué)是老問(wèn)題了,為什么我這里不會(huì)自動(dòng)添加呢?)

1 回復(fù) 有任何疑惑可以回復(fù)我~
#1

qq_袮D影孑_03909390

這個(gè)放進(jìn)去的意思在哪?maven不是會(huì)自動(dòng)導(dǎo)入依賴(lài)的?
2018-10-28 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

import spring-dao.xml后Spring容器出問(wèn)題,不能創(chuàng)建realm的bean

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)