如何在敏捷开发环境中应用它?

问题描述

我想在开发环境中使用摇摇欲坠,而不是在本地使用。我该怎么做?

swagger-ui弹出了,但是其中的内容不可见,并且似乎在前端吐了一个错误

我将该内容添加到了springsecurity

   @Override
public void configure(WebSecurity web) {
    web.ignoring().antMatchers(
            "/v2/api-docs","/swagger-resources","/swagger-resources/**","/configuration/ui","/configuration/security","/swagger-ui.html","/webjars/**"
    );

此外,由于进入前端时会通过Nginx触发api,因此我将以下配置添加到了Nginx.conf文件中。

server{
location ~ /swagger-ui.html {
    if ($request_method !~ ^(GET|POST|PUT|DELETE|OPTIONS)$ ){
        return 403;
    }
    proxy_pass http://$serverName;
    proxy_http_version 1.1;
proxy_set_header   Upgrade $http_upgrade;
    proxy_set_header   Connection keep-alive;
    proxy_set_header   Host $host;
    proxy_cache_bypass $http_upgrade;
    proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header   X-Forwarded-Proto $scheme;
}

}

'http://helloworld.com/swagger-ui.html',我想在输入网址时显示招摇。 谁能告诉我如何设置? 控制台上显示错误如下。 errorimage

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)