
web
古巴与八股
未来的相视一笑 只因曾经的全然相爱
展开
-
springboot集成tk.mybatis,及Druid数据源
一、springboot集成Druid数据源1、添加Druid依赖2、添加配置具体步骤如下:1、添加Druid依赖 <dependency> <groupId>com.alibaba</groupId> <artifactId>druid-spring-boot-st...原创 2019-11-26 16:53:23 · 879 阅读 · 0 评论 -
springboot集成swagger
springboot集成swagger主要通过以下3步:1、添加依赖2、增加配置类3、在接口中使用总的来说还是挺方便的,下面具体介绍下。1、添加依赖,在pom文件里添加以下依赖,可以配置公共模块的pom文件里: <dependency> <groupId>io.springfox</groupId>...原创 2019-11-26 14:24:09 · 155 阅读 · 0 评论 -
启动keepalived时日志中出现“ip address associated with VRID 51 not present in MASTER advert”
之前配置好的keepalive,在后来测试过程中发现关闭keepalive重新启动时日志会报以下错误:Jul 1 14:47:13 frontend1 Keepalived_vrrp[112938]: bogus VRRP packet received on ens160 !!!Jul 1 14:47:13 frontend1 Keepalived_vrrp[112938]: VRRP...原创 2019-07-01 17:38:02 · 12331 阅读 · 1 评论 -
springboot XML Parser Error on line 44: 元素类型为 "context" 的内容不完整, 它必须匹配
SpringBoot 项目打包时出现以下错误提示:XML Parser Error on line 44: 元素类型为 "context" 的内容不完整, 它必须匹配 "(property*,plugin*,commentGenerator?,(connectionFactory|jdbcConnection),javaTypeResolver?,javaModelGenerator,sql...原创 2019-07-05 14:38:25 · 9169 阅读 · 1 评论 -
Failed to parse multipart servlet request; nested exception is java.io.IOException: The temporary up
在springboot开发的web项目上传文件时遇到的这个问题,原因是项目启动过程中会在/tmp目录中创建/tmp/tomcat.6677757050852465893.7001/work/Tomcat/localhost/ROOTTomcat的临时工作目录,而linux系统会定时清理/tmp目录下的内容,一般为10天,当该目录被系统清理后,上传文件便会出现该问题。解决办法:...原创 2019-09-26 17:14:31 · 23294 阅读 · 1 评论