![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
请叫我帅Liu
这个作者很懒,什么都没留下…
展开
-
配置Druid数据源监控(springboot中)
/* Druid 数据源具有监控的功能,并提供了一个 web 界面方便用户查看. 第一步需要设置 Druid 的后台管理页面,比如 登录账号、密码 等;配置后台管理; */ //配置 Druid 监控管理后台的Servlet; // 内置 Servlet 容器时没有web.xml文件,所以使用 Spring Boot 的注册 Servlet 方式 @Bean public ServletRegistrationBean statVie原创 2021-08-25 09:14:19 · 225 阅读 · 0 评论 -
Springboot使用maven打包失败的原因
使用maven package 对springboot项目进行打包,失败的原因: 1.springboot 和maven 的版本问题 maven版本过低,springboot版本过高。 2.springboot中的properties配置文件的编码格式问题 有可能创建的springboot核心配置文件的编码格式为GBK,在idea设置中进行更改,然后mvn clear , mvn package 进行重新打包。 ...原创 2021-08-14 10:06:31 · 2389 阅读 · 0 评论