JAX-RS Swagger2Feature Spring Demo
=================
The demo shows a basic usage of Swagger 2.0 API documentation with REST based Web Services using
JAX-RS 2.0 (JSR-339).
Building and running the demo using Maven
---------------------------------------
From the base directory of this sample (i.e., where this README file is
located), the Maven pom.xml file can be used to build and run the demo.
Using either UNIX or Windows:
mvn install
mvn -Pserver (from one command line window)
After the service is started, the Swagger API documents in JSON and YAML
are available at
http://localhost:9000/swaggerSample/swagger.json
http://localhost:9000/swaggerSample/swagger.yaml
To remove the target dir, run mvn clean".
If you do not have your swagger-ui on your local system, you can download
a copy from its download site.
At the console, type
wget -N https://github.com/swagger-api/swagger-ui/archive/master.zip
unzip master.zip
This will extract the content of the swagger-ui zip file. Using your Browser, open
the index.html file at swagger-ui-master/dist/. Finally, type in the above swagger
document URL in the input field and click on "Explore" to view the document.
没有合适的资源?快使用搜索试试~ 我知道了~
cxf配置swagger2
共53个文件
java:18个
xml:15个
yml:5个
需积分: 50 5 下载量 42 浏览量
2019-08-25
16:29:24
上传
评论 1
收藏 58KB ZIP 举报
温馨提示
cxf配置swagger2
资源推荐
资源详情
资源评论
收起资源包目录
jax_rs.zip (53个子文件)
spring_boot_scan
docker-compose.yml 424B
client
pom.xml 3KB
src
main
resources
application.yml 221B
java
sample
rs
client
SampleRestClientApplication.java 4KB
service
HelloService.java 1KB
README 958B
application
Dockerfile 262B
pom.xml 5KB
src
test
java
sample
rs
service
SampleRestApplicationTest.java 2KB
main
resources
application.yml 766B
swagger.properties 326B
bootstrap.yml 59B
java
sample
rs
service
hello2
HelloServiceImpl2.java 1KB
SampleRestApplication.java 1KB
HelloService.java 1KB
hello1
HelloServiceImpl1.java 1KB
README 3KB
eureka-registry
Dockerfile 283B
pom.xml 3KB
src
main
resources
application.yml 142B
java
registry
eureka
RegistryApplication.java 1KB
README 929B
README 781B
spring_boot
Dockerfile 235B
pom.xml 5KB
target
generated-sources
annotations
classes
application.properties 205B
src
test
java
sample
rs
service
SampleRestApplicationTest.java 2KB
main
resources
application.properties 205B
java
sample
rs
client
SampleRestClientApplication.java 2KB
service
hello2
HelloServiceImpl2.java 1KB
SampleRestApplication.java 3KB
api
HelloService.java 1KB
hello1
HelloServiceImpl1.java 1KB
.idea
workspace.xml 26KB
encodings.xml 172B
misc.xml 529B
.name 21B
compiler.xml 542B
README 2KB
description_swagger2_spring
pom.xml 4KB
src
main
resources
META-INF
cxf
org.apache.cxf.Logger 41B
logback.xml 452B
context.xml 3KB
java
demo
jaxrs
swagger
server
Server.java 1KB
Sample.java 5KB
Item.java 1KB
ApiOriginFilter.java 2KB
.idea
workspace.xml 16KB
encodings.xml 172B
misc.xml 513B
.name 34B
compiler.xml 555B
README.txt 1KB
共 53 条
- 1
资源评论
zhousenshan
- 粉丝: 654
- 资源: 211
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功