java web百错集(一)

1. 问题:JSP页面不论怎样都有一个>符号

    原因:在导入java其他包的时候多打了一个>没有注意到,我一直在寻找body之间是否存在什么错误,没有想到body之外也会显示在jsp页面中。

    解决方法:重新建了一个空jsp代码与问题代码对比排查。

2. 问题:页面出现The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

    原因:跳转的地址多加了文件后缀.java

3.问题:mysql数据库使用新的驱动连接字符串问题。

  如果你想表达下面的语句

jdbcUrl=jdbc:mysql://localhost:3306/spring?serverTimezone=UTC&characterEncoding=utf-8

则应把&改为&amp:

jdbcUrl=jdbc:mysql://localhost:3306/spring?serverTimezone=UTC&characterEncoding=utf-8
发布了41 篇原创文章 · 获赞 15 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/ScanQ/article/details/87645129