上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: 目录 配置文件 application.yml eureka: client: service-url: defaultZone: http://localhost:8001/eureka server: port: 9001 spring: application: name: zuul ##配置 阅读全文
posted @ 2019-12-20 10:39 慕容子月 阅读(1602) 评论(0) 推荐(0) 编辑
摘要: 什么是微服务架构 架构设计概念,各服务间隔离(分布式也是隔离),自治(分布式依赖整体组合)其它特性(单一职责,边界,异步通信,独立部署)是分布式概念的跟严格执行SOA到微服务架构的演进过程作用:各服务可独立应用,组合服务也可系统应用(巨石应用[monolith]的简化实现策略-平台思想) SOA架构 阅读全文
posted @ 2019-12-17 16:15 慕容子月 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 导入依赖 生产者provider 目录 接口IDoSomeService 实现类 IDoSomeServiceImpl 配置文件application.properties 测试类DubboProvider 消费者consumer 目录 接口类IDoSomeService DubboControll 阅读全文
posted @ 2019-12-14 14:54 慕容子月 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 目录 MybatisController @RestController public class MybatisController { @Resource private IGradeService iGradeService; @RequestMapping("/insertGrade") p 阅读全文
posted @ 2019-12-14 11:34 慕容子月 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 目录 Grade实体类 public class Grade { private Integer gradeId; private String gradeName; public Grade(){ } public Grade(Integer gradeId, String gradeName) 阅读全文
posted @ 2019-12-14 10:37 慕容子月 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 目录 依赖 <!-- 添加thymeleaf模版的依赖 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </depe 阅读全文
posted @ 2019-12-12 17:08 慕容子月 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 目录 依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </dependency> <dependency> <groupId 阅读全文
posted @ 2019-12-12 16:51 慕容子月 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 案例springboot_freemarker application.properties配置文件 ###FreeMarker配置 spring.freemarker.template-loader-path=classpath:/templates/ spring.freemarker.cach 阅读全文
posted @ 2019-12-10 17:12 慕容子月 阅读(481) 评论(0) 推荐(0) 编辑
摘要: Dubbox Dubbox 是一个分布式服务框架,其前身是阿里巴巴开源项目Dubbo ,被国内电商及互联网项目中使用,后期阿里巴巴停止了该项目的维护,当当网便在Dubbo基础上进行优化,并继续维护,为了与原有的Dubbo区分,故将其命名为Dubbox。 工作原理: 节点角色说明 Provider: 阅读全文
posted @ 2019-12-10 08:50 慕容子月 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 一对多、多对一 Country类 @Entity @Table(name = "Country") public class Country { @Id //sequence identity @GeneratedValue(strategy = GenerationType.IDENTITY) p 阅读全文
posted @ 2019-12-07 18:43 慕容子月 阅读(502) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页