異常 This application has no explicit mapping for /error so y
出現這個異常說明了跳轉頁面的url無對應的值.
原因1:
Application啟動類的位置不對.要將Application類放在最外側,即包含所有子包
- spring-boot會自動載入啟動類所在包下及其子包下的所有元件
原因2:
在springboot的配置檔案:application.yml或application.properties中關於檢視解析器的配置問題:
- 當pom檔案下的spring-boot-starter-paren版本高時使用:spring.mvc.view.prefix/spring.mvc.view.suffix
- 當pom檔案下的spring-boot-starter-paren版本低時使用::spring.view.prefix/spring.view.suffix
原因3:
控制器的URL路徑書寫問題:
- @RequestMapping(“xxxxxxxxxxxxxx”) ,實際訪問的路徑與”xxx”不符合
再分享一下我老師大神的人工智慧教程吧。零基礎!通俗易懂!風趣幽默!還帶黃段子!希望你也加入到我們人工智慧的隊伍中來!https://blog.csdn.net/jiangjunshow
相關文章
- 【JavaDebug(七)】之SpringBoot的Web專案異常:This application has no explicit mapping for /error, so you are seJavaSpring BootWebAPPError
- Service異常:Service Intent must be explicitIntent
- The server has encountered an error while loading an applicationServerErrorWhileAPP
- 啟動UltraEdit錯誤An error has occured.The application will be shutdown.ErrorAPP
- Android之ANR異常Application Not ResponseAndroidAPP
- 執行android程式控制臺輸出異常The connection to adb is down, and a severe error has occuredAndroidError
- Window Application has "update" key wordsAPP
- 急~~~Error establishing socket異常。Error
- An out of memory error has occurred.Error
- Unrecognized Windows Sockets error: 0: JVM_Bind異常ZedWindowsErrorJVM
- storm 啟動異常 Error when processing eventORMError
- RAISE_APPLICATION_ERRORAIAPPError
- SQLServer mirror當機後error 9004異常處理SQLServerError
- 前端開發中的Error以及異常捕獲前端Error
- React Error Boundary 元件異常處理方案實踐ReactError元件
- 執行 locust 的異常 pywintypes.error 如何解決?Error
- The API server is burning too much error budget 異常處理APIServerError
- An internal error has occurred. Java heap spaceErrorJava
- 解決程式中Error creating bean with name 'XXXXX‘ defined in class path resource [application的異常ErrorBeanAPP
- How to fix Rosetta stone error 2123 -- "This was an error in the application"ROSErrorAPP
- View.setTag(key,object)異常:The key must be an application-specific resource id.ViewObjectAPP
- 異常篇——異常處理
- 異常和異常呼叫鏈
- Connection to x as user y failed: ERROR: Wrong password for userAIError
- Java中Error和Exception的異同以及執行時異常(Runtime exception)與檢查型異常(checked exception)的區別JavaErrorException
- Java 異常(二) 自定義異常Java
- Java checked異常和unchecked異常。Java
- innobackupex:Error:xtrabackup child process has died at /usr/bin/innobackupexError
- An unexpected error has been detected by Java Runtime EnvironmentErrorJava
- an error has occurred. - no valid devices were found...Errordev
- The connection to adb is down, and a severe error has occured.Error
- An error has occurred when creating this preference page.Error
- 異常-編譯期異常和執行期異常的區別編譯
- 異常-throws的方式處理異常
- 異常處理與異常函式函式
- jmu-Java-06異常-01-常見異常Java
- ORA-00600: internal error code, arguments: [kzsrsea] DataGuard環境的異常Error
- PLSQL獲取異常堆疊資訊-dbms_utility.format_error_backtraceSQLORMError