上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 21 下一页
摘要: 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)
摘要: @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)
摘要: <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)
摘要: 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)
摘要: 阅读全文
posted @ 2019-01-22 18:29 brx_blog 阅读(391) 评论(0) 推荐(0)
摘要: @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的启动依赖,就会将默认的ConcurrentMapCacheManage换为 RedisCacheManager;默认创建的 RedisCacheManager 操作redis的时候使用的是 RedisTemplate<Object, Obj 阅读全文
posted @ 2019-01-21 13:24 brx_blog 阅读(408) 评论(0) 推荐(0)
摘要: 一、依赖范围(scope): 共5种,compile (编译)、test (测试)、runtime (运行时)、provided、system compile:编译依赖范围,在编译,测试,运行时都需要。依赖范围默认为compile. test: 测试依赖范围,测试时需要。编译和运行不需要。如Juni 阅读全文
posted @ 2019-01-18 14:13 brx_blog 阅读(233) 评论(0) 推荐(0)
摘要: 根据SpringBoot的Starter编写规则,需要编写xxxStarter依赖xxxAutoConfigurer,xxxStarter是一个空的jar,仅提供辅助性的依赖管理,引入其他类库 1.建立一个empty工程,建立一个普通maven模块xxxStarter,建立一个SpringBoot模 阅读全文
posted @ 2019-01-18 14:02 brx_blog 阅读(245) 评论(0) 推荐(0)
摘要: 导入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 下一页