• Home
  • Archives
  • 随笔
所有文章 友链 关于我

  • Home
  • Archives
  • 随笔

spring解析错误解决

发布于: 2018-08-05
更新于: 2023-07-09

Well, I am not sure this answer will help u, as the question is posed in 14. In order to help people resolve this question, I send some of my resolutions. Hope this will help.

  • make sure your @Controller ‘s configuration
    • @RequestMapping("/xx") cannot be the same as your view(jsp or templates)

For example, you have a view name home.html. You cannot let the @RequestMapping() be the same as view’s name. This will cause circle error (–> I am not sure the actual exception name) Correction, it should be the path cannot be the name.(That’s the JSP files mostly happen)

When u input the same name, u will get this.

Circular view path [preference]: would dispatch back to the current handler URL [/preference] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)

Here is a link explain why [this error would happen][1]

  • This only for the HTML5 file
    -When u create an HTML file, the basic file will be the below code.
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>

The <meta charset="UTF-8"> didn’t end with /> or
When in the HTML5 file, that should be right. But I think the thymeleaf use the XHTML. So the <meta> should remember to close.

spring解析错误解决
/archives/f8927c6b/
作者
tyrantqiao
发布于
2018-08-05
更新于
2023-07-09
许可协议
CC BY-NC-SA 4.0
赏

蟹蟹大佬的打赏,大家一起进步

支付宝
微信
  • java
  • spring

扫一扫,分享到微信

微信分享二维码
Unity+java简单登入注册实现
shadowsocks一些解决方案
© 2024 tyrantqiao 本站总访问量次 本站访客数人次 载入天数...载入时分秒...
  • 所有文章
  • 友链
  • 关于我

tag:

  • 复盘
  • 我
  • 规划
  • java
  • 面试
  • 源码
  • 架构
  • Hadoop
  • HTTP
  • TCP
  • 学习笔记
  • IDEA
  • maven
  • idea
  • Java
  • jdk
  • 面经
  • linux
  • 爱情
  • mysql
  • 性能
  • sql
  • Mysql
  • JAVA
  • 技术
  • Redis
  • MQ
  • Spring
  • 数据库
  • TIDB
  • spring
  • unity
  • chatgpt
  • 经验分享
  • 前端
  • redis
  • vue
  • git
  • shadowsocks
  • hexo
  • blog
  • bug
  • 开发
  • 业务
  • jvm
  • 算法
  • MySQL
  • nginx
  • Linux
  • mq
  • db
  • springCloud
  • ssh
  • python
  • 爬虫
  • test
  • vim
  • 影视剧
  • 中间件
  • 事务
  • 性格
  • 音乐
  • 程序员
  • 随笔
  • mybatis
  • 演讲
  • 域名
  • 猫咪
  • 她
  • github
  • 计划
  • 旅游
  • 软件
  • 心理
  • 情商
  • 幽默
  • 才艺
  • 穿搭
  • 编程
  • 排序
  • 查找
  • 缓存
  • 网络
  • 设计模式
  • c
  • 课程设计
  • centos
  • 数学
  • 本网站主题yilia设计者的主页
如果有问题或者想讨论的可以联系[email protected]或者[email protected]