首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    如何防范SpringBoot 相关漏洞?

    开发人员没有意识到地址泄漏会导致安全隐患或者开发环境切换为线上生产环境时,相关人员没有更改配置文件,忘记切换环境配置等 可以直接访问以下两个 swagger 相关路由,验证漏洞是否存在: /v2/api-docs /swagger-ui.html...index.html /api/v2/api-docs /v2/swagger.json /swagger-ui/html /distv2/index.html /swagger/index.html /sw/swagger-ui.html.../api/swagger-ui.html /static/swagger.json /user/swagger-ui.html /swagger-ui/index.html /swagger-dubbo.../api-docs /template/swagger-ui.html /swagger/static/index.html /dubbo-provider/distv2/index.html /spring-security-rest.../api/swagger-ui.html /spring-security-oauth-resource/swagger-ui.html 除此之外,下面的 spring boot actuator 相关路由有时也会包含

    95740

    springcloud:gateway网关聚合swagger实现多个服务接口切换

    :(不推荐,但是是方法二的前置条件) 对每个需要生成接口的项目集成swagger,具体方法点击查看,然后启动所有的项目,需要查看不同服务的接口时去访问不同的地址:http://{ip}:{port}/swagger-ui.html...,缺陷很明显:为记录不同项目的地址而烦恼,一旦服务ip或端口更换后又要重新记录 方法二:使用网关统一入口 访问swagger-ui.html的时候会发现右上角的这个下拉选项 当启动一个springboot...; import springfox.documentation.swagger.web.*; import java.util.List; /** * swagger聚合接口,三个接口都是swagger-ui.html...ResponseEntity(swaggerResourceProvider.get(), HttpStatus.OK); } } 启动所有的项目,网关项目最后启动:访问网关的http://{ip}:{port}/swagger-ui.html

    39910
    领券