![](https://img-blog.csdnimg.cn/7a99ef50f17a4a5683fd7dda36b122de.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
springBoot
有关java中springBoot的一些知识
Klix
关注我,跟我一起学JAVA,每周不一定更新。
展开
-
SpringBoot里的注解
SpringBoot里常用的注解原创 2022-10-30 18:20:14 · 194 阅读 · 0 评论 -
Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest
Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test原创 2022-10-01 15:34:48 · 608 阅读 · 0 评论 -
would dispatch back to the current handler URL [/getOssToken] again. Check your ViewResolver setup!
would dispatch back to the current handler URL [/getOssToken] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)原创 2022-08-06 01:24:21 · 738 阅读 · 1 评论 -
后端接口接收数据的方式
前端向后端发送数据常见的三种方式1.Query String(查询字符串方式,url后通过?引出的参数) 适用于任何请求(?号拼接),后端直接用参数接受即可2.请求体的方式(payload方式json请求体)适用post、delete、put等请求,后端要用对象或者数组接收3.路径参数 (localhost:8081/role/{a}),后端直接用参数接收...原创 2022-04-10 10:12:48 · 5252 阅读 · 0 评论 -
maven构建SpringBoot项目
在maven项目的基础上构建SpringBoot项目:一、修改pom.xml文件二、添加启动类三、SpringBoot常用相关依赖四、配置文件常用配置五、总结原创 2022-06-20 21:17:10 · 2518 阅读 · 0 评论 -
SpringBoot整合邮箱验证(典中典)
SpringBoot整合邮箱验证,并实现一个邮箱对应一个用户和验证码的时效性。原创 2022-06-18 11:04:33 · 1294 阅读 · 3 评论 -
java: 错误: 无效的源发行版:16
在建立springBoot项目时发生 (无效的源发行版:16)这个错误时最佳的解决办法原创 2022-05-28 12:20:31 · 12420 阅读 · 3 评论 -
因为时间报错2.0版本
从数据库拿到的时间比数据库里的时间早8或12或20小时原创 2022-05-12 22:45:17 · 249 阅读 · 0 评论 -
Failed to convert value of type ‘java.lang.String’ to required type ‘java.util.Date’
springboot项目在接收时间类型的时候,报Failed to convert value of type ‘java.lang.String’ to required type 'java.util.Date’的错误,这句话的意思是,把字符串转为Date类型失败了原创 2022-05-06 01:39:38 · 5103 阅读 · 0 评论 -
前后端交互时修改日期格式的注解,DateTimeFormat和JsonFormat
datetime用于接收非json格式的参数,jsonformat用于接收或响应json格式数据原创 2022-04-27 17:18:06 · 952 阅读 · 0 评论 -
java中SpringBoot项目配置过滤器
注意:JavaWeb带有的过滤器要比SpringBoot带有拦截器先发生1.第一步,在SpringBoot的启动类上配置扫描过滤器的注解package com.jshiming;import lombok.extern.slf4j.Slf4j;import org.mybatis.spring.annotation.MapperScan;import org.springframework.boot.SpringApplication;import org.springf.原创 2022-04-25 15:25:27 · 1315 阅读 · 2 评论 -
JAVA中SpringBoot项目配置拦截器
给项目配置拦截器,拦截未登录用户,放行对静态资源的访问原创 2022-04-25 14:35:40 · 958 阅读 · 2 评论