
springboot
ZPJeck
刚刚入门的小菜鸟,以后会接着努力.
展开
-
java.lang.IllegalArgumentException: Invalid character found in the request target. The valid charact
程序报错的场景:使用linux服务器操作,curl "http://127.0.0.1:port/api/analyze?text=这里输入中文"java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986 at org.apache.coyote.http11.Http11.转载 2020-06-03 13:31:40 · 5160 阅读 · 0 评论 -
springboot 中 Invalid bound statement (not found):错误
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.zpjeck.mapper.EmployeeMapper.insertEmp at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(Mappe...原创 2018-11-13 19:16:45 · 10936 阅读 · 4 评论 -
spring boot中如何更改自己网站标题栏的logo
作为一个软件开的小白,重点是积累知识!下面介绍到在spring boot中如何更改自己网站标题栏的logo 1.首先在springboot中找到 这个WebMvcAutoConfiguration类eg: 在idea中 双击 shift 查找一个这个类2.在类中找到faviconHandlerMapping此springboot中的配置是在所有的静态...原创 2018-11-08 20:54:48 · 5616 阅读 · 0 评论 -
使用springboot 时contraller中findById 方法报错问题
在书写springboot的contraller时 出现了 findById和findOne 报错出红。经过查找一番资料后,发现spring boot 2版本中所用的查询是 findById(); 并且在使用的时候会加上一个get()方法代码如下: @Autowired private UserRepository userRepository; @Req...原创 2018-11-14 20:36:34 · 4376 阅读 · 5 评论 -
spring boot中错误 Table '*****.hibernate_sequence' doesn't exist
首先在运行时出现了 这样的错误Hibernate: select next_val as id_val from hibernate_sequence for update2018-11-26 11:03:28,506 - could not read a hi valuejava.sql.SQLSyntaxErrorException: Table 'imooc.hibernate_s...原创 2018-11-26 11:16:38 · 4201 阅读 · 0 评论 -
@JsonInclude注解
1.使用@JsonInclude(JsonInclude.Include.NON_NULL)注解 可以返回制定格式的json数据 : 如果属性返回值为空,则不返回任何内容,这是由于@JsonInclude(JsonInclude.Include.NON_NULL)这个注解产生的本注解是从废弃的注解中提升的 @JsonSerialize(include = JsonSerializ...原创 2018-12-04 10:30:29 · 13231 阅读 · 0 评论 -
springboot中 报错:To display the conditions report re-run your application with 'debug' enabled.
springboot运行时报错错误如下:解决办法:错误如下:Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2019-01-10 14:34:47,489 - **************************...原创 2019-01-10 14:44:41 · 6493 阅读 · 1 评论 -
有关 spring boot中 jpa报错:with root cause java.lang.StringIndexOutOfBoundsException: String index out of
报错代码:2019-02-28 11:59:27,533 - Servlet.service() for servlet [dispatcherServlet] in context with path [/zxzc] threw exception [Request processing failed; nested exception is java.lang.Strin...原创 2019-02-28 12:06:11 · 5167 阅读 · 0 评论