
SpringBoot
权权qxj
人生没有白走的路,每一步都算数。
展开
-
IDEA Error:java: 无效的源发行版: 11错误
springboot+maven新建项目启动之后报错,内容如下:IDEA Error:java: 无效的源发行版: 11错误idea新建项目时,由于没有更改jdk版本,自动建了jdk版本为11的项目,并且在maven 打包是也会发现提示此错误信息,可以做如下修改,推荐直接使用第二种。方法一:settings更改选择Preferences --> Build,Execution,Deployment -->Compiler -->java Compiler这里把这个11版本改为原创 2021-11-29 15:17:43 · 3172 阅读 · 0 评论 -
java请求路径有特殊符号 Invalid character found in the request target. The valid characters are defined in RFC
最近在项目开发过程中,由于推送到数据库的数据各式各样,id出现特殊符号,如:{D27E2B76B6D84143AB0F3049570A4F38},包含{}符号,请求地址为http://localhost:8050/api/task/detail?id=D27E2B76B6D84143AB0F3049570A4F38结果页面报400错误,后台出现以下报错信息:java.lang.IllegalArgumentException: Invalid character found in the request原创 2020-06-19 15:44:42 · 801 阅读 · 1 评论 -
SpringBoot配置项目访问路径server.context-path不生效
在使用springboot时,在application.properties中配置了server.context-path=/test,如图:启动项目:发现端口生效为8084 ,而context path为空检查springboot版本为2.2.4,SpringBoot在2.0版本之后已经弃用server.context-path,而代替为server.servlet.context-p...原创 2020-02-07 16:14:51 · 27154 阅读 · 4 评论 -
Java springboot This application has no explicit mapping for /error, so you are seeing this as a
运行项目主程序类SpringBootApplication后,通过http://localhost:8080/hello访问时,报如下错误:This application has no explicit mapping for /error, so you are seeing this as a fallback.这个错误原因是因为启动类放置的位置不对:这里添加的注解会将主配置类(S...原创 2020-02-05 17:13:20 · 1926 阅读 · 0 评论