自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 算法题-20200409

/** 给定一个int[n] a,其在下标为0到k上以及k到n-1上都是单调递增,且a[n-1]小于a[0],求k */ public class BBB { public static int findK(int[] source) { int length = source.length; if (length <= 2) { ...

2020-04-09 14:00:25 1436

原创 学习Spring boot AOP

1、添加Maven依赖       org.springframework.boot spring-boot-starter-aop 2、编写切面类 @Aspect @Component public class BaseAop { private final static Logger logger= LoggerFactory.getLogger(Ba

2017-09-18 10:43:45 301

原创 学习Spring boot 数据库连接

1、配置文件内容       spring: profiles: active: dog datasource: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/dogs username: root password: 123456 jpa

2017-09-15 09:33:17 193

原创 学习Spring boot 获取参数的注解

1、@PathVariable       从url中获取参数,格式如下,url遵循restful的访问规则。 @RequestMapping(value = {"/dog/{id}"} , method = RequestMethod.GET) public String dog(@PathVariable("id") int id){ 2、@RequestParam      

2017-09-14 17:10:11 622

原创 学习Spring boot 注解 @Value @Component @ConfigurationProperties

1、@Value        从当前的配置文件中读取参数,格式为 @Value("${TypeName}") private Type typeName;       会自动进行类型转换。 2、@Component       只有加了这个注解的类才可以被@Autowired使用。 3、@ConfigurationProperties       从当前的配置文件中读取一整个集

2017-09-14 16:38:11 1352

空空如也

空空如也

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

TA关注的人

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