Compare commits

...

2 Commits

Author SHA1 Message Date
xyc
9ca4197363 Merge remote-tracking branch 'origin/master' 2025-04-25 12:58:02 +08:00
xyc
556e7ad9f0 新增COS配置 2025-04-25 12:57:54 +08:00
2 changed files with 5 additions and 4 deletions

View File

@ -211,7 +211,7 @@ public class BusiNoticeServiceImpl extends ServiceImpl<BusiNoticeMapper,BusiNoti
}
@Override
@Transactional
@Transactional(rollbackFor = Exception.class)
public String saveOrUpdateVo(BusiNotice data) throws Exception {
//获取当前登录用户id
Long userId = SecurityUtils.getUserId();

View File

@ -23,7 +23,7 @@ import com.ruoyi.framework.security.handle.LogoutSuccessHandlerImpl;
/**
* spring security配置
*
*
* @author ruoyi
*/
@EnableMethodSecurity(prePostEnabled = true, securedEnabled = true)
@ -35,7 +35,7 @@ public class SecurityConfig
*/
@Autowired
private UserDetailsService userDetailsService;
/**
* 认证失败处理类
*/
@ -53,7 +53,7 @@ public class SecurityConfig
*/
@Autowired
private JwtAuthenticationTokenFilter authenticationTokenFilter;
/**
* 跨域过滤器
*/
@ -117,6 +117,7 @@ public class SecurityConfig
// 静态资源可匿名访问
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
.antMatchers("/cos/sts").permitAll()
// 除上面外的所有请求全部需要鉴权认证
.anyRequest().authenticated();
})