会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
brx_blog
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
14
15
16
17
···
21
下一页
2019年3月4日
maven打包自定义jar到maven仓库
摘要: mvn install:install-file -Dfile=F:/Sdk4j.jar -DgroupId=com.sdk4j -DartifactId=sdk4j -Dversion=1.0 -Dpackaging=jar
阅读全文
posted @ 2019-03-04 13:00 brx_blog
阅读(242)
评论(0)
推荐(0)
2019年1月29日
AOP打印请求日志,打印返回值
摘要: @Aspect // 申明是个spring管理的bean @Component @Slf4j public class LogAspectServiceApi { private JSONObject jsonObject = new JSONObject(); // 申明一个切点 里面是 execution表达式 @Pointcut("execution(public...
阅读全文
posted @ 2019-01-29 19:23 brx_blog
阅读(1209)
评论(0)
推荐(0)
2019年1月23日
maven解决omitted for duplicate(依赖冲突)
摘要: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <exclusions> <exclusion> <groupId>org.springfra
阅读全文
posted @ 2019-01-23 11:11 brx_blog
阅读(84061)
评论(0)
推荐(2)
2019年1月22日
SpringBoot发送邮件
摘要: 1.引入email依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId></dependency> 2.开通邮箱相关的账户设置 //用授
阅读全文
posted @ 2019-01-22 18:36 brx_blog
阅读(201)
评论(0)
推荐(0)
@Scheduler与cron
摘要:
阅读全文
posted @ 2019-01-22 18:29 brx_blog
阅读(391)
评论(0)
推荐(0)
2019年1月21日
SpringBoot2.x配置JsonRedisSerializer
摘要: @Configurationpublic class SpringCacheRedisConfig { @Bean public RedisCacheManager cacheManager(RedisConnectionFactory factory) { RedisSerializer redisSerializer = new StringRedis...
阅读全文
posted @ 2019-01-21 13:30 brx_blog
阅读(1902)
评论(0)
推荐(0)
SpringBoot集成redis,使用@Cachexxxx
摘要: 一、引入相关依赖: SpringBoot检查到有redis的启动依赖,就会将默认的ConcurrentMapCacheManage换为 RedisCacheManager;默认创建的 RedisCacheManager 操作redis的时候使用的是 RedisTemplate<Object, Obj
阅读全文
posted @ 2019-01-21 13:24 brx_blog
阅读(408)
评论(0)
推荐(0)
2019年1月18日
Maven依赖及范围
摘要: 一、依赖范围(scope): 共5种,compile (编译)、test (测试)、runtime (运行时)、provided、system compile:编译依赖范围,在编译,测试,运行时都需要。依赖范围默认为compile. test: 测试依赖范围,测试时需要。编译和运行不需要。如Juni
阅读全文
posted @ 2019-01-18 14:13 brx_blog
阅读(233)
评论(0)
推荐(0)
SpringBoot编写自定义Starter
摘要: 根据SpringBoot的Starter编写规则,需要编写xxxStarter依赖xxxAutoConfigurer,xxxStarter是一个空的jar,仅提供辅助性的依赖管理,引入其他类库 1.建立一个empty工程,建立一个普通maven模块xxxStarter,建立一个SpringBoot模
阅读全文
posted @ 2019-01-18 14:02 brx_blog
阅读(245)
评论(0)
推荐(0)
2019年1月16日
SpringBoot整合druid
摘要: 导入druid数据源 @Configuration public class DruidConfig { @ConfigurationProperties(prefix = "spring.datasource")//注入spring.datasource.druid.xxx @Bean public DataSource druid(){ return new DruidDataSource(...
阅读全文
posted @ 2019-01-16 17:07 brx_blog
阅读(292)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
15
16
17
···
21
下一页
公告