package com.order;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;
@SpringBootApplication
@EnableDiscoveryClient
public class OrderApplication {
public static void main(String[] args) {
SpringApplication.run(OrderApplication.class);
}
@Bean
@LoadBalanced
public RestTemplate create() {
return new RestTemplate();
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
SpringCloudAlibaba二整合Nacos
共83个文件
sample:13个
xml:10个
class:4个
需积分: 11 0 下载量 157 浏览量
2022-10-19
09:42:20
上传
评论
收藏 59KB ZIP 举报
温馨提示
# 背景下面来看看,分布式服务怎么整合Nacos## 下载安装Nacos## 创建父模块 IDEA中新建一个Maven项目,起好名字,选好项目存放路径,作为父模块
资源详情
资源评论
资源推荐
收起资源包目录
springcloud-nacos.zip (83个子文件)
springcloud-nacos
pom.xml 2KB
.git
index 2KB
hooks
fsmonitor-watchman.sample 5KB
pre-push.sample 1KB
prepare-commit-msg.sample 1KB
pre-merge-commit.sample 416B
applypatch-msg.sample 478B
pre-commit.sample 2KB
pre-receive.sample 544B
pre-applypatch.sample 424B
commit-msg.sample 896B
pre-rebase.sample 5KB
update.sample 4KB
post-update.sample 189B
push-to-checkout.sample 3KB
config 314B
description 73B
refs
tags
heads
master 41B
remotes
origin
master 41B
logs
refs
heads
master 155B
remotes
origin
master 137B
HEAD 155B
objects
13
566b81b018ad684f3a35fee301741b2734c8f4 141B
2404bc29da2535f7f7dde84180d85abc60d5a4 303B
1e
7caa33d70a672556c3ddb0d8363aef99d779ca 45B
43
4a5aed9afc96460b9666b04d040dcc71efad3f 262B
d5
5dc363e145f851e5bdec04f5d6be07ecdb2407 143B
60
12bdda7dfc996956ce481fd58ecd313fcd27ce 79B
0c
9271b731d461b382778a369c1c2f194be77688 47B
8e
9778c5792d078de0d64a921c1c68535b294e05 215B
4b
7467c9cd520bc52128b2948c9c8de8ffd0f57b 102B
bb
24b96eb88654932bd2661ff549a6bc0105ba40 65B
8f
d660c7f437de108097313c658ba1ab86a678d3 45B
c0
92cf12e478c810d114ebc450fd0401d583bf3d 329B
89
efe1b066f1d3b76d67ed96ee45f8eb1ef67abe 171B
c5
401cd007a5a2a254d15849c981da9f44e5e319 65B
ba
13c7fe3552b8f65e4d2efc56bb827df80623ca 109B
06
f09e28d67aecdd485ea06e645a841615b7d1cf 47B
59
6dfa3301c5466688556705b93c5946bfc8e1cf 297B
86
a0f06352daf6a34b61accf9acb64f8787f440a 60B
d1
37d392cbdc6c4b89ff8a2bddb4f9b8351877eb 381B
info
cc
c26807fb70a0ed9358c855a9a89080ffb02e99 80B
79
7acea53eb091cf5b30518802c3073f544adeed 214B
77
55c798f5f5c07768623a97be0c29ab4e1a4ce8 47B
pack
25
f51c3daf6748ae1865cf5b90b34dd0298d1063 62B
dc
04fbfcf0dc2815bda517333ac6c4ecb985284c 235B
aa
cf249f40b61a33b7d9f7ee23ac596d60d21d02 102B
2b
4ab81be44cb598a3fa31b8f95ceb507398dca9 81B
63
6ce3ec5c95c8fae4ef3f743437488c4a5d0769 611B
b01db39a63af103fb16cd005fd14702a5aea88 110B
ee
5e5fbb72842286546f970bc077f08ea41c2061 46B
5a
2f139ce25c6f225e0cb5fb199704f51273de00 307B
08
a5bda34d675c3d95108cc03ee6fb4dfcdf56b3 60B
e3
48587aca847f1c0b3fdb0f724b3266aa6df32e 124B
1d
9500cf8210a3a901d526eff5ecb7cfdd513884 329B
6f
18e63f25b8c71534349c783fe90230f8b45a1e 294B
b8
9dac20791ff264e7a5eabbb10d5cce281a0896 81B
info
exclude 240B
COMMIT_EDITMSG 15B
HEAD 23B
stock
pom.xml 655B
target
classes
application.yml 137B
com
stock
StockApplication.class 820B
controller
StockController.class 973B
generated-sources
annotations
src
test
java
main
resources
application.yml 137B
java
com
stock
controller
StockController.java 477B
StockApplication.java 413B
.idea
runConfigurations.xml 346B
misc.xml 541B
jarRepositories.xml 880B
vcs.xml 185B
encodings.xml 274B
compiler.xml 858B
workspace.xml 5KB
.gitignore 184B
.gitignore 55B
order
pom.xml 655B
target
classes
application.yml 138B
com
order
OrderApplication.class 1KB
controller
OrderController.class 1KB
generated-sources
annotations
src
test
java
main
resources
application.yml 138B
java
com
order
OrderApplication.java 700B
controller
OrderController.java 618B
共 83 条
- 1
BirdMan98
- 粉丝: 2w+
- 资源: 23
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0