
SpringBoot
hit、run
分享技术,记录生活
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
springboot LogBack日志压缩
日志压缩原创 2023-01-05 14:36:43 · 1735 阅读 · 0 评论 -
springboot中读取配置文件中的数据(生产实例)
import org.springframework.beans.factory.annotation.Value;import org.springframework.stereotype.Component;/** * xx 常量配置 */@Componentpublic class AgoraConstant { public static String AP...原创 2020-03-31 15:23:01 · 659 阅读 · 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 · 273 阅读 · 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 · 150 阅读 · 0 评论 -
springboot基础2
1.springboot原理分析:1)从springboot的起步依赖,来说其实就是锁定了一些坐标的版本,插件管理,依赖管理等.所以说springboot的起步依赖,其实就是依赖的传递. <parent> <groupId>org.springframework.boot</groupId> <artifactI...原创 2019-05-17 11:52:28 · 165 阅读 · 0 评论 -
springboot之使用redistemplate操作redis
原文链接链接原创 2019-03-12 18:42:10 · 557 阅读 · 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 · 1469 阅读 · 0 评论 -
springBoot通过,注解@value,读取配置文件中的数据
//读取配置文件@Value("${web.host}") private String webHost;//方法调用,获取到配置文件的值public String getWebHost(){ return webHost; }原创 2019-04-18 15:54:58 · 1122 阅读 · 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 · 475 阅读 · 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 · 203 阅读 · 0 评论