✨ Introducing new features. #3711 ureport2 支持preview 数据不二次登录

This commit is contained in:
qraddx committed 2022-03-17 12:00:43 +08:00
1 parent d07022c89a
commit ca7bb696b3
2 files changed
+4 -4

No files matched your search

@@ -65,7 +65,7 @@ public class SysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRo
if (StrUtil.isBlank(menuIds)) {
return Boolean.TRUE;
}
List<SysRoleMenu> roleMenuList = Arrays.stream(menuIds.split(",")).map(menuId -> {
List<SysRoleMenu> roleMenuList = Arrays.stream(menuIds.split(StrUtil.COMMA)).map(menuId -> {
SysRoleMenu roleMenu = new SysRoleMenu();
roleMenu.setRoleId(roleId);
roleMenu.setMenuId(Long.valueOf(menuId));
@@ -45,8 +45,8 @@ public class WebSecurityConfigurer extends WebSecurityConfigurerAdapter {
protected void configure(HttpSecurity http) {
http.headers().frameOptions().disable().and().formLogin().loginPage("/login.html").loginProcessingUrl("/login")
.failureHandler(new LoginFailureHandler()).and().authorizeRequests()
.antMatchers("/login.html", "/login", "/actuator/**").permitAll().anyRequest().authenticated().and()
.csrf().disable();
.antMatchers("/login.html", "/login", "/actuator/**", "/ureport/preview").permitAll().anyRequest()
.authenticated().and().csrf().disable();
}
/**
@@ -55,7 +55,7 @@ public class WebSecurityConfigurer extends WebSecurityConfigurerAdapter {
*/
@Override
public void configure(WebSecurity web) {
web.ignoring().antMatchers("/favicon.ico", "/css/**", "/error");
web.ignoring().antMatchers("/favicon.ico", "/css/**", "/ureport/res/**", "/error");
}
/**