![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Spring
君之虞
这个作者很懒,什么都没留下…
展开
-
log4j日志追踪系统
log4j原创 2022-09-17 11:10:35 · 241 阅读 · 0 评论 -
IDEA Springboot自动化打包部署
1.背景在实际开发中,我们经常要一边开发一边测试,当然这里说的测试并不是程序员对自己代码的单元测试,而是同组程序员将代码提交后,由测试人员测试;或者前后端分离后,经常会修改接口,然后重新部署;这些情况都会涉及到频繁的打包部署;手动打包常规步骤:1.提交代码2.问一下同组小伙伴有没有要提交的代码3.拉取代码并打包(war包,或者jar包)4.上传到Linux服务器5.查看当前程序是否在运行6.关闭当前程序7.启动新的jar包8.观察日志看是否启动成功9.如果有同事说,自己还有代码没有原创 2022-03-09 10:48:13 · 1582 阅读 · 0 评论 -
SpringBoot 集成 log4j2
1、Maven依赖 <!-- 集成Log4j2日志 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId><!-- 去除springboot默认的logback日志,以免冲突-->原创 2021-11-30 16:58:32 · 470 阅读 · 0 评论 -
Plugin ‘org.springframework.boot:spring-boot-maven-plugin:‘ not found
打包后运行显示jar包没有主清单属性去maven中查看了下是pom中插件找不到很多人说加上版本号就可以了 <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin<原创 2021-03-26 15:55:09 · 283 阅读 · 0 评论 -
Spring Cloud OpenFeign 动态Url
直接上代码@FeignClient(value = "CESHI",url = "http://XXX.XXX.XXX.XXX:8022")//url写一个默认的public interface CeshiService { @PostMapping("/Ceshi") JSONObject Ceshi(URI uri,@RequestBody JSONObject json);} @Autowired private CeshiService ceshiServi原创 2021-03-23 14:53:05 · 1391 阅读 · 4 评论 -
SpringBoot读取自定义配置文件
1.新建.properties文件,例如文件内容为 mathlocalconfig.server = 02.新建一个类import org.springframework.boot.context.properties.ConfigurationProperties;import org.springframework.context.annotation.Configuration;import org.springframework.context.annotation.PropertySo原创 2021-01-26 20:52:48 · 154 阅读 · 0 评论 -
The field file exceeds its maximum permitted size of 1048576 bytes.
Spring Boot修改最大上传文件限制:The field file exceeds its maximum permitted size of 1048576 bytes.Spring Boot 1.3.x或者之前multipart.maxFileSize=100Mbmultipart.maxRequestSize=1000MbSpring Boot 1.4.xspring.http.multipart.maxFileSize=100Mbspring.http.multipart.max原创 2020-11-28 10:47:11 · 170 阅读 · 0 评论