摘要:
阅读全文
posted @ 2023-11-16 22:13
1stzz1
阅读(15)
评论(0)
推荐(0)
摘要:
①win + R 进入cmd ②d: ③cd D:\Nacos\bin ④startup.cmd -m standalone 阅读全文
posted @ 2023-11-16 21:17
1stzz1
阅读(32)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2023-11-16 20:35
1stzz1
阅读(27)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2023-11-16 18:45
1stzz1
阅读(33)
评论(0)
推荐(0)
摘要:
代码示例: 1. 修改service层代码: @Servicepublic class OrderService { @Autowired private OrderMapper orderMapper; @Autowired private RestTemplate restTemplate; p 阅读全文
posted @ 2023-11-16 18:34
1stzz1
阅读(29)
评论(0)
推荐(0)
摘要:
代码示例: usersvice: orderservice: 阅读全文
posted @ 2023-11-16 18:22
1stzz1
阅读(34)
评论(0)
推荐(0)
摘要:
代码示例: 启动类: @SpringBootApplication@EnableEurekaServer //自动装配的开关public class EurekaApplication { public static void main(String[] args) { SpringApplicat 阅读全文
posted @ 2023-11-16 17:56
1stzz1
阅读(26)
评论(0)
推荐(0)
摘要:
1. 注册 RestTemplate 对象到 Spring 容器中(Bean 的注入只能放在配置类里,而启动类本身就是配置类) @SpringBootApplicationpublic class OrderServiceApplication { public static void main(S 阅读全文
posted @ 2023-11-16 16:26
1stzz1
阅读(130)
评论(0)
推荐(0)
浙公网安备 33010602011771号