課程
/后端開發(fā)
/Java
/SpringBoot開發(fā)常用技術(shù)整合
這是啥錯誤啊 ?百度說的在controller中拋異常 不管用啊 ?誰能幫我解決下 卡在這里好久了
2018-05-06
源自:SpringBoot開發(fā)常用技術(shù)整合 8-2
正在回答
我也遇到了,這其實是兩個錯誤,首先是因為其他地方報錯了,所以error進入500頁面,但500頁面沒找到message錯誤信息。所以先解決第一個錯誤,再解決返回值message
//如果寫成error,則springboot會用SpelView來渲染,導(dǎo)致Property or field 'message' cannot be found 的錯誤。
public static final String DEFAULT_ERROR_VIEW = "err";
maven環(huán)境就是容易出問題,可能是你相關(guān)的jar沒有下載完吧,導(dǎo)致項目報錯的。你可以重新清除一下jar,然后從新下載相關(guān)依賴。
屬性或字段message沒有找到,你好好檢查代碼,是不是寫錯了還是沒有定義這個屬性或字段
慕函數(shù)3265425 提問者
debug都進不去后臺了 ?誰來幫我解決下啊
舉報
SpringBoot 極簡開發(fā)的框架整合利器
2 回答項目啟動保錯 field * could not be found
3 回答Error resolving template "thymeleaf/index", template might not exist or might not be accessible by any of the configured Template Resolvers
3 回答連接不到redis Caused by: io.lettuce.core.RedisConnectionException: Unable to connect to 192.168.43.52:6379
3 回答Description: Field resource in com.imooc.controller.HelloContoller required a bean of type 'com.imocc.pojo.Resource' that could not be found. Action: Consider defining a bean of type 'com.imocc.pojo.Resource' in your configuration.
2 回答class path resource [resource.properties] cannot be opened because it does not exist
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2019-11-07
我也遇到了,這其實是兩個錯誤,首先是因為其他地方報錯了,所以error進入500頁面,但500頁面沒找到message錯誤信息。所以先解決第一個錯誤,再解決返回值message
2018-06-07
//如果寫成error,則springboot會用SpelView來渲染,導(dǎo)致Property or field 'message' cannot be found 的錯誤。
public static final String DEFAULT_ERROR_VIEW = "err";
2018-05-06
maven環(huán)境就是容易出問題,可能是你相關(guān)的jar沒有下載完吧,導(dǎo)致項目報錯的。你可以重新清除一下jar,然后從新下載相關(guān)依賴。
2018-05-06
屬性或字段message沒有找到,你好好檢查代碼,是不是寫錯了還是沒有定義這個屬性或字段
2018-05-06
debug都進不去后臺了 ?誰來幫我解決下啊