异常
啊这就离谱
这个作者很懒,什么都没留下…
展开
-
SpringCloud集成swagger报错Internal Server Error http://localhost/project-service/v2/api-docs
使用springcloud gateway集成swagger,访问http://localhost:网关接口/swagger-ui.html出现:原因是网关的路由断言没有路径剥离,我只是想访问的路径少一个服务名而已:但此时服务swagger json文件的调用路径是http://localhost:8000/v2/api-docs,如果不剥离路径,网关路由后将访问http://localhost:8000/product/v2/api-docs。贴一个网关代码:SwaggerHandler:@原创 2021-05-11 21:44:02 · 3688 阅读 · 0 评论 -
加入SpringMVC以后页面css样式没有了
写了个页面用了css样式,好不容易弄好了,我寻思着开始做登录跳转功能,结果写了SpringMVC以后页面就404,鼓捣了半天(差不多一天了都)换了n个包,终于包不冲突了(其实有时候手动导包还不容易出错),结果页面样式又没了。然后我又重新写了一遍,发现问题好像在web.xml: <!-- 核心控制器 --><servlet> <servlet-name>springMVC</servlet-name> <servlet-class>org原创 2020-07-30 15:34:34 · 1238 阅读 · 2 评论 -
java.sql.SQLException: Unable to load authentication plugin ‘caching_sha2_password‘.
主要原因8.x版本的验证模块和之前版本不同:5.x版本是:default_authentication_plugin=mysql_native_password8.x版本就是:default_authentication_plugin=caching_sha2_password解决:更新mysql驱动的jar版本,可以修改为8.0.19版本<dependency> <groupId>mysql</groupId> <artifactId>mysq转载 2020-07-22 11:45:47 · 157 阅读 · 0 评论 -
java.sql.SQLException: The server time zone value ‘�й���ʱ��‘ is un
使用数据库报错:java.sql.SQLException: The server time zone value ‘�й���ʱ��’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the ‘serverTimezone’ configuration property) to use a more specifc time z转载 2020-07-22 11:41:12 · 943 阅读 · 0 评论