![](https://img-blog.csdnimg.cn/5eb9ef3e63784b059f7f4b07e41c3334.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
SpringBoot
一时学习一时爽,一直学习一直爽
①生活最沉重的负担不是工作,而是无聊
②昨晚多几分钟的准备,今天少几个小时的麻烦
展开
-
request中URL路径获取
request.getRequestURL():http://localhost:8080/LoginApi/v1/login request.getRequestURI():/LoginApi/v1/login request.getContextPath(): request.getServletPath():/LoginApi/v1/login原创 2022-01-04 09:48:12 · 3272 阅读 · 0 评论 -
MySQL数据库中date datetime timestamp三个时间类型与实体类类型对应关系
JAVA类型 MySQL类型 成功与否 date date yes date time no date timestamp no date datetime no time date no time time yes time timestamp no time datetime no timestamp date yes timestamp time yes timestamp timestamp yes timestamp datetime y...原创 2021-07-04 12:30:08 · 2676 阅读 · 0 评论 -
Invalid character found in method name. HTTP method names must be tokens
问题记录: Invalid character found in method name. HTTP method names must be tokens 解决办法: 将HTTPS修改成HTTP请求.原创 2021-07-04 11:24:13 · 161 阅读 · 0 评论 -
Resolved exception caused by Handler execution: java.lang.NullPointerException
问题记录:Resolved exception caused by Handler execution: java.lang.NullPointerException 解决方法:传入参数名称是否一样,多参数使用DTO封装实体使用@RequestBody注解注入原创 2021-06-07 15:11:29 · 1938 阅读 · 0 评论 -
@RequestParam
@RequestParam(required=true,defaultValue=“20”) 设置前端传递过来的参数默认值原创 2021-06-07 15:07:35 · 73 阅读 · 0 评论 -
nohup命令解决SpringBoot/java -jar命令启动项目运行一段时间自动停止问题
nohup命令解决SpringBoot/java -jar命令启动项目运行一段时间自动停止问题 问题背景 有一个springboot项目,放在测试服务器跑,但是隔一段时间,就会GG,要搞清楚怎么回事。 其实这就是SpringBoot项目运行一段时间停止运行、java -jar项目运行一段时间停止、java程序运行一段时间自动关闭 的问题了。 解决方案 用java -jar xxx-service-0.0.1-SNAPSHOT.jar >xxxx.log& 原来项目启动后看起来似乎脱离终端了,原创 2021-03-19 16:51:11 · 1194 阅读 · 0 评论 -
Spring boot跨域问题解决
pom文件 <!--跨域--> <dependency> <groupId>io.projectreactor</groupId> <artifactId>reactor-core</artifactId> <version>3.4.3</version> </dependency> 在Contr原创 2021-03-19 16:49:31 · 64 阅读 · 0 评论