自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

转载 SpringBoot配置属性之Server

server配置server.address指定server绑定的地址server.compression.enabled是否开启压缩,默认为false.server.compression.excluded-user-agents指定不压缩的user-agent,多个以逗号分隔,默...

2017-09-28 17:31:00 102

转载 SpringBoot配置属性之DataSource

datasourcespring.dao.exceptiontranslation.enabled是否开启PersistenceExceptionTranslationPostProcessor,默认为truespring.datasource.abandon-when-percenta...

2017-09-28 17:31:00 99

转载 SpringBoot四大神器之Actuator

Spring Boot有四大神器,分别是auto-configuration、starters、cli、actuator,本文主要讲actuator。actuator是spring boot提供的对应用系统的自省和监控的集成功能,可以对应用系统进行配置查看、相关功能统计等。使用actuato...

2017-09-28 17:31:00 142

转载 SpringBoot配置属性之NOSQL

cachespring.cache.cache-names指定要创建的缓存的名称,逗号分隔(若该缓存实现支持的话)spring.cache.ehcache.config指定初始化EhCache时使用的配置文件的位置指定.spring.cache.guava.spec指定创建缓存要使用...

2017-09-28 17:30:00 51

转载 SpringBoot集成mybatis

一、使用mybatis-spring-boot-starter1、添加依赖<dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-...

2017-09-28 17:30:00 97

转载 SpringBoot四大神器之Starter

SpringBoot的starter主要用来简化依赖用的。本文主要分两部分,一部分是列出一些starter的依赖,另一部分是教你自己写一个starter。部分starters的依赖Starter(Group ID: org.springframework.boot) 传递依赖于spri...

2017-09-28 17:29:00 131

转载 SpringBoot集成mybatis

一、使用mybatis-spring-boot-starter1、添加依赖<dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-...

2017-05-11 14:04:00 58

转载 SpringBoot配置属性之其他

aopspring.aop.auto是否支持@EnableAspectJAutoProxy,默认为: truespring.aop.proxy-target-classtrue为使用CGLIB代理,false为JDK代理,默认为falseapplicationspring.appl...

2017-05-11 14:03:00 74

转载 SpringBoot配置属性之Migration

SpringBoot支持了两种数据库迁移工具,一个是flyway,一个是liquibase。其本身也支持sql script,在初始化数据源之后执行指定的脚本。flywayflyway.baseline-description对执行迁移时基准版本的描述.flyway.baseline-...

2017-05-11 14:02:00 129

转载 SpringBoot配置属性之Security

spring security是springboot支持的权限控制系统。security.basic.authorize-mode要使用权限控制模式.security.basic.enabled是否开启基本的鉴权,默认为truesecurity.basic.path需要鉴权的path...

2017-05-11 14:01:00 92

转载 SpringBoot配置属性之MQ

activemqspring.activemq.broker-url指定ActiveMQ broker的URL,默认自动生成.spring.activemq.in-memory是否是内存模式,默认为true.spring.activemq.password指定broker的密码....

2017-05-11 14:00:00 79

转载 SpringBoot配置属性之NOSQL

cachespring.cache.cache-names指定要创建的缓存的名称,逗号分隔(若该缓存实现支持的话)spring.cache.ehcache.config指定初始化EhCache时使用的配置文件的位置指定.spring.cache.guava.spec指定创建缓存要使用...

2017-05-11 13:59:00 57

转载 SpringBoot配置属性之DataSource

datasourcespring.dao.exceptiontranslation.enabled是否开启PersistenceExceptionTranslationPostProcessor,默认为truespring.datasource.abandon-when-percenta...

2017-05-11 13:58:00 96

转载 SpringBoot配置属性之MVC

主要是mvc相关的一些配置mvcspring.mvc.async.request-timeout设定async请求的超时时间,以毫秒为单位,如果没有设置的话,以具体实现的超时时间为准,比如tomcat的servlet3的话是10秒.spring.mvc.date-format设定日期的...

2017-05-11 13:57:00 76

转载 SpringBoot配置属性之Server

server配置server.address指定server绑定的地址server.compression.enabled是否开启压缩,默认为false.server.compression.excluded-user-agents指定不压缩的user-agent,多个以逗号分隔,默...

2017-05-11 13:55:00 98

转载 SpringBoot常用配置

前言:springboot集成了主流的第三方框架,但是需要使用springboot那一套配置方式。但是我这里只列举了非常非常常用的,可以看已发的几篇博客,慢慢会补充。当然官方文档里也有相应的配置,可惜没有注释。mvcspring.mvc.async.request-timeout设定as...

2017-05-11 13:50:00 345

转载 常用正则表达式

一、校验数字的表达式1 数字:^[0-9]*$2 n位的数字:^\d{n}$3 至少n位的数字:^\d{n,}$4 m-n位的数字:^\d{m,n}$5 零和非零开头的数字:^(0|[1-9][0-9]*)$6 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(.[...

2017-02-21 12:39:00 112

转载 Git常用命令

查看、添加、提交、删除、找回,重置修改文件git help <command> # 显示command的helpgit show # 显示某次提交的内容 git show $idgit co -- <file> # 抛弃工作区修改git co . # 抛弃工作...

2017-02-21 12:14:00 49

转载 Spring Data JPA: 为单个Repository添加自定义方法

Spring Data JPA: 为单个Repository添加自定义方法Cliff 发布于 9 个月前 0评论 1845浏览 javaspringjpa我们在Spring Data JPA: 为所有Repository添加自定义方法中学习了通过JpaRepositoryFactory来为...

2016-05-19 16:19:00 134

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除