|
|
|
@ -116,6 +116,16 @@ public class SecurityConfig
|
|
|
|
|
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
|
|
|
|
|
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**"
|
|
|
|
|
,"/record/**").permitAll()
|
|
|
|
|
|
|
|
|
|
// 允许匿名访问看板接口
|
|
|
|
|
.antMatchers("/ems/base/baseMonitorInfo/list").permitAll()
|
|
|
|
|
.antMatchers("/base/baseCabinetInfo/countCabinet").permitAll()
|
|
|
|
|
.antMatchers("/record/recordBusbarAlarm/recordBusbarAlarmCount").permitAll()
|
|
|
|
|
.antMatchers("/ems/record/recordIOTInstant/selectLastTWTempertureData").permitAll()
|
|
|
|
|
.antMatchers("/record/recordBusbarTemp/boardTempList").permitAll()
|
|
|
|
|
// 允许匿名访问 看板 下所有页面
|
|
|
|
|
.antMatchers("/board/**").permitAll()
|
|
|
|
|
|
|
|
|
|
// 除上面外的所有请求全部需要鉴权认证
|
|
|
|
|
.anyRequest().authenticated();
|
|
|
|
|
})
|
|
|
|
|