Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

项目无法启动 swigger无法打开 #1

Open
guojxx opened this issue Jan 12, 2018 · 13 comments
Open

项目无法启动 swigger无法打开 #1

guojxx opened this issue Jan 12, 2018 · 13 comments

Comments

@guojxx
Copy link

guojxx commented Jan 12, 2018

这样配置 localhost:8080 无法 打开 项目启动正常

@Arisono
Copy link
Member

Arisono commented Jan 12, 2018

因为没有配置端口号

@guojxx
Copy link
Author

guojxx commented Jan 12, 2018

application.peroperties server.port=9100 还是无法访问哦 难道是我使用idea的原因吗

@Arisono
Copy link
Member

Arisono commented Jan 12, 2018

localhost:9100 无法访问?

@Arisono
Copy link
Member

Arisono commented Jan 12, 2018

需要添加项目根路径,spring-restful-authorization

@Arisono
Copy link
Member

Arisono commented Jan 12, 2018

访问的时候,需要添加项目根路径spring-restful-authorization

@guojxx
Copy link
Author

guojxx commented Jan 12, 2018

@guojxx
Copy link
Author

guojxx commented Jan 12, 2018

swigger调试页面也是打不开哦 显示这个

@Arisono
Copy link
Member

Arisono commented Jan 12, 2018

@guojxx
Copy link
Author

guojxx commented Jan 12, 2018

{"apiVersion":"1.0","apis":[{"description":"Basic Error Controller","path":"/default/basic-error-controller","position":0},{"description":"Token Controller","path":"/default/token-controller","position":0}],"authorizations":{},"info":{"title":"spring-token-restful api doc"},"swaggerVersion":"1.2"}
返回这串json?

@Arisono
Copy link
Member

Arisono commented Jan 12, 2018

嗯,接下自己查资料学习啦

@guojxx
Copy link
Author

guojxx commented Jan 12, 2018

io.springfox springfox-swagger2 2.2.2 io.springfox springfox-swagger-ui 2.2.2

pom换成这两个 user表修改一下 访问http://localhost:8200/spring-restful-authorization/swagger-ui.html

@Arisono
Copy link
Member

Arisono commented Jan 12, 2018

有问题请加入群聊151909524

@guojxx
Copy link
Author

guojxx commented Jan 12, 2018

okokok token设计问题~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants