master
吴顺杰 1 year ago
parent 25c155c60a
commit c229e266e2

@ -126,7 +126,7 @@ swagger:
# 是否开启swagger # 是否开启swagger
enabled: true enabled: true
# 请求前缀 # 请求前缀
pathMapping: /api pathMapping: /
# 防止XSS攻击 # 防止XSS攻击
xss: xss:

@ -22,8 +22,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectBNetList" parameterType="BNet" resultMap="BNetResult"> <select id="selectBNetList" parameterType="BNet" resultMap="BNetResult">
<include refid="selectBNetVo"/> <include refid="selectBNetVo"/>
<where> <where>
<if test="netName != null and netName != ''"> and net_name like concat('%', #{netName}, '%')</if> <if test="netName != null and netName != ''">and net_name like concat('%', #{netName}, '%')</if>
<if test="shanghuId != null and shanghuId != ''">and shanghu_id like = #{shanghuId}</if>
</where> </where>
</select> </select>

@ -115,6 +115,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
// 静态资源,可匿名访问 // 静态资源,可匿名访问
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll() .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
.antMatchers( "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**", "/jn/**").permitAll() .antMatchers( "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**", "/jn/**").permitAll()
.antMatchers("/netEwm/net/findById/**").anonymous()
// 除上面外的所有请求全部需要鉴权认证 // 除上面外的所有请求全部需要鉴权认证
.anyRequest().authenticated() .anyRequest().authenticated()
.and() .and()

Loading…
Cancel
Save