随笔分类 - springboot
摘要:@RequestMapping("/test") public void test(HttpServletRequest request, HttpServletResponse response, String filename, String path) throws IOException {
阅读全文
摘要:在分布式项目中一个项目会拆分成许多应用,每个应用启动时像注册中心 注册一个名字例如 a,方便他人用这个名字a 调用a应用的接口 feign客户端的作用就是通过其他应用注册的名字 去调用其他应用的接口 例如 1 启动订单系统 注册名字为member 订单系统中有个接口 2 启动会员系统 会员系统的/g
阅读全文
摘要:1 maven <!--EHcache--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-cache</artifactId> </dependency> <depe
阅读全文
摘要:1 在配种文件中指定两个数据库 2 配置数据源读取配置文件 (照抄代码 修改mapper文件夹位置,修改读取前缀 prefix = "spring.datasource.test1") 数据源1 数据源2 3 可以启动了
阅读全文

浙公网安备 33010602011771号