zoukankan      html  css  js  c++  java
  • springboot配置spring security 静态资源不能访问

    在springboot整合spring security 过程中曾遇到下面问题:(spring boot 2.0以上版本   spring security 5.x    (spring  security 4.x不知道是否会存在以下问题) )

     springsecurity会自动屏蔽我们引用的css,js等静态资源,导致页面不能加载出该有的样式。
    应在继承了WebSecurityConfigurerAdapter类中的configure方法中添加允许加载的配置

     

  • 相关阅读:
    bzoj1009
    bzoj1576 3694
    bzoj3143
    bzoj1391
    bzoj2729
    bzoj2653
    bzoj3261
    bzoj2326
    人件
    优秀的产品
  • 原文地址:https://www.cnblogs.com/zouhong/p/11964232.html
Copyright © 2011-2022 走看看