package org.example.controller;
import org.example.entity.Product;
import org.example.service.IProductService;
import org.example.service.ProductServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController
@RequestMapping("/prduct")
public class ProductController {
@Autowired
private IProductService IproductService;
/**
* 查询商品列表
* @return
*/
@GetMapping("/list")
public List<Product> selectProductList(){
return IproductService.selectProductList();
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
springboot与consul整合案例
共64个文件
sample:13个
xml:9个
java:6个
需积分: 0 2 下载量 53 浏览量
2022-10-24
15:18:52
上传
评论
收藏 37KB RAR 举报
温馨提示
springboot与consul整合案例 ,springboot 版本2.2.4.RELEASE spring cloud 版本:Hoxton.SR1
资源详情
资源评论
资源推荐
收起资源包目录
consul-demo.rar (64个子文件)
consul-demo
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 130B
description 73B
refs
tags
heads
objects
13
2404bc29da2535f7f7dde84180d85abc60d5a4 303B
fc
81556c15f5b14f8224b3402e5bf4e541f397c2 75B
d5
f435df0340a1f8b4f2cd9b9d6220ffd05c2d21 309B
d0
6989fdd0e49574ab56ea70041e41e4e9256281 358B
a2
7b314525a649bb647ad99f76d4ae049e654b8c 1012B
e6
9de29bb2d1d6434b8b29ae775ad8c2e48c5391 15B
9f
88c1f9632445500e3b3688fe477b860f77d8f2 178B
d1
2bfc0a71845c1a94fe99bcac8a92dd0b40b4d7 325B
fa
730f291e26beb75c393423a068a193430136c7 75B
info
pack
00
964bfd5f1c6549bf7488840e5000d69a518ea7 352B
0f
44205e8af0c6ca9221e91b9615a351c7989072 68B
c3
8169bb958579c635a5c09ee2f379cc5956c0c2 56B
7e
946fa14a9fa71187966d8ea11622546bdf64c9 78B
3c
a8ad3d25c5648fd9ca141ff81544f9eea0df19 73B
5f
f6309b7199129c1afe4f4ec1906e640bec48c6 288B
21d2e226b4d7fdea016d811e98992006c6f8b1 152B
3b
10c9084c5f442371a10260a4f5cd6579987567 399B
e3
b1967ded9ec6688f7237b135cd09f016dbb601 396B
94
a25f7f4cb416c083d265558da75d457237d671 155B
e7
e479c3b956cb708599cbf839b32fd73da89deb 236B
info
exclude 240B
HEAD 23B
.idea
uiDesigner.xml 9KB
misc.xml 671B
jarRepositories.xml 870B
vcs.xml 185B
encodings.xml 355B
compiler.xml 729B
workspace.xml 6KB
service-provider
pom.xml 2KB
target
maven-status
maven-compiler-plugin
compile
default-compile
inputFiles.lst 165B
createdFiles.lst 0B
classes
application.yml 657B
org
example
ServiceProviderApp.class 805B
controller
ProductController.class 969B
service
ProductServiceImpl.class 1KB
IProductService.class 251B
entity
Product.class 3KB
generated-sources
annotations
src
test
java
org
example
AppTest.java 677B
main
resources
application.yml 657B
java
org
example
controller
ProductController.java 912B
service
ProductServiceImpl.java 516B
IProductService.java 234B
entity
Product.java 434B
ServiceProviderApp.java 466B
.gitignore 490B
.gitignore 490B
共 64 条
- 1
haojuntu
- 粉丝: 25
- 资源: 52
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0