springboot集成
文章平均质量分 54
springboot集成学习
cxyrfg
这个作者很懒,什么都没留下…
展开
-
springboot整合使用Apollo配置中心
1.创建C:\opt\settings\server.properties目录,并填写内容【env=DEV】 2.创建springboot 项目 版本1.5.17.RELEASE 3.添加Apollo依赖 <!--apollo相关jar包--><dependency> <groupId>com.ctrip.framework.apollo</groupId> <artifactId>apollo-cl...转载 2021-01-19 15:26:29 · 208 阅读 · 1 评论 -
JSR-330 ‘javax.inject.Inject‘ annotation found and supported for autowiring
JSR-330 ‘javax.inject.Inject’ annotation found and supported for autowiring 近期碰到一个bug 项目启动卡住啦 可能是有一个断点卡住啦项目转载 2020-09-03 14:03:42 · 797 阅读 · 0 评论 -
spring事务完成之后异步执行其他操作
1.service接口 package com.rfg.springbootmybaits.service; import com.rfg.springbootmybaits.dto.PersonAddParam; import org.springframework.transaction.annotation.Transactional; /** * @Author: RuanFuGui * @Date: Created in 2020/5/17 20:28 * @Description: T原创 2020-05-18 00:02:24 · 688 阅读 · 0 评论 -
springboot中配置logback+slf4j
1.引入依赖 2.配置文件logback-spring.xml <?xml version="1.0" encoding="UTF-8"?> <configuration debug="false" scan = "true"> <!-- 日志输出目录,前缀:/logs/order/【***】 后面填写项目名称 --> <property name="LOG_HOME" value="/usr/logs/ibp/sm" /> <原创 2020-05-12 14:53:57 · 529 阅读 · 0 评论