1、在YudaoWebSecurityConfigurerAdapter中通过配置
httpSecurity
// 1.7 数据推送 允许匿名访问 .antMatchers("/device-push").permitAll()
不生效
2、在application.yaml文件中配置即可
yudao:
security:
permit-all_urls:
- /admin-api/iit/device-push/** # 设备推送接口,不需要登录
1、在YudaoWebSecurityConfigurerAdapter中通过配置
httpSecurity
// 1.7 数据推送 允许匿名访问 .antMatchers("/device-push").permitAll()
不生效
2、在application.yaml文件中配置即可
yudao:
security:
permit-all_urls:
- /admin-api/iit/device-push/** # 设备推送接口,不需要登录