![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
hit、run
分享技术,记录生活
展开
-
springboot LogBack日志压缩
日志压缩原创 2023-01-05 14:36:43 · 1405 阅读 · 0 评论 -
springboot中读取配置文件中的数据(生产实例)
import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; /** * xx 常量配置 */ @Component public class AgoraConstant { public static String AP...原创 2020-03-31 15:23:01 · 613 阅读 · 0 评论 -
项目启动就加载的信息
package com.xxx.customerserviceapi.common.config; import com.xxx.base.util.CommonUtil; import com.xxx.common.base.constant.CommonConstant; import com.xxx.common.base.entity.Product; import com.xxx.co...原创 2019-11-05 15:23:38 · 229 阅读 · 0 评论 -
spriboot项目启动参数初始化
1.服务启动初始化的类 package com.yxb.bc.base.config; import com.yxb.bc.base.entity.ResultDataDetail; import org.springframework.boot.CommandLineRunner; import org.springframework.stereotype.Component; import ...原创 2019-10-21 11:44:26 · 121 阅读 · 0 评论 -
springboot基础2
1.springboot原理分析: 1)从springboot的起步依赖,来说其实就是锁定了一些坐标的版本,插件管理,依赖管理等.所以说springboot的起步依赖,其实就是依赖的传递. <parent> <groupId>org.springframework.boot</groupId> <artifactI...原创 2019-05-17 11:52:28 · 132 阅读 · 0 评论 -
springboot之使用redistemplate操作redis
原文链接链接原创 2019-03-12 18:42:10 · 515 阅读 · 0 评论 -
SpringBoot+Mybatis+Druid批量更新multi-statement not allow异常
原文链接 Mybatis集成Druid批量更新时,出现异常 Error updating database. Cause: java.sql.SQLException: sql injection violation, multi-statement not allow : 经查询,Druid的multiStatementAllow默认是false,需要开启,设置成true。 注:filter...原创 2019-03-27 17:17:26 · 1388 阅读 · 0 评论 -
springBoot通过,注解@value,读取配置文件中的数据
//读取配置文件 @Value("${web.host}") private String webHost; //方法调用,获取到配置文件的值 public String getWebHost(){ return webHost; }原创 2019-04-18 15:54:58 · 1080 阅读 · 0 评论 -
spring Boot使用JavaMailSender发送邮件
1.邮件发送的实现类 package com.yxb.makerhomesync.service.impl; import com.jiuhongpay.base.util.StringUtil; import com.jiuhongpay.makerhomesync.common.config.MyJavaMailSender; import com.jiuhongpay.makerhomesy...原创 2019-05-08 11:36:14 · 398 阅读 · 0 评论 -
springboot基础1
1.spring的优点: 1)依赖注入 2)面向切面编程 2.spring的缺点: 1)太多的xml配置文件 3.springboot特点: 解决了spring配置文件太多的问题,它有很多默认的配置,springboot其实是提供了一种快速使用spring的方式. 4.springBoot核心功能 1)起步依赖:将具有某种功能的坐标打包到一起 2)自动配置,该过程是spring自动完成的 ...原创 2019-05-16 18:59:52 · 166 阅读 · 0 评论