上一页 1 ··· 10 11 12 13 14
摘要: 从Spring3.0,@Configuration用于定义配置类,可替换xml配置文件,被注解的类内部包含有一个或多个被@Bean注解的方法,这些方法将会被AnnotationConfigApplicationContext或AnnotationConfigWebApplicationContext 阅读全文
posted @ 2019-11-05 19:59 MyBeans 阅读(282) 评论(0) 推荐(0) 编辑
摘要: @EnableConfigurationProperties注解的作用是: 让使用 @ConfigurationProperties 注解的类生效。 当@EnableConfigurationProperties注解应用到你的@Configuration时, 任何被@ConfigurationPro 阅读全文
posted @ 2019-11-05 19:41 MyBeans 阅读(1102) 评论(0) 推荐(0) 编辑
摘要: 后端开发中经常需要对移动客户端提供RESTful API接口,在后期版本快速迭代的过程中,修改接口实现的时候都必须同步修改接口文档,而文档与代码又处于两个不同的媒介,除非有严格的管理机制,不然很容易导致写出的代码与接口文档不一致现象。 Swagger 是一个规范和完整的框架,用于生成、描述、调用和可 阅读全文
posted @ 2019-11-05 19:30 MyBeans 阅读(240) 评论(0) 推荐(0) 编辑
摘要: pom.xml 1 <parent> 2 <groupId>org.springframework.boot</groupId> 3 <artifactId>spring-boot-starter-parent</artifactId> 4 <version>2.2.0.RELEASE</versi 阅读全文
posted @ 2019-11-04 23:25 MyBeans 阅读(319) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14