1
0
mirror of https://github.com/201206030/novel-plus.git synced 2025-06-20 19:28:31 +00:00

perf: 设置网站 ico 图标

This commit is contained in:
xiongxiaoyang 2023-10-15 20:30:11 +08:00
parent 0332802fe5
commit 5543e5aa57
5 changed files with 2 additions and 0 deletions
novel-admin/src/main
java/com/java2nb/common/config
resources
novel-crawl/src/main
java/com/java2nb/novel/core/config
resources

@ -68,6 +68,7 @@ public class ShiroConfig {
filterChainDefinitionMap.put("/js/**", "anon");
filterChainDefinitionMap.put("/fonts/**", "anon");
filterChainDefinitionMap.put("/img/**", "anon");
filterChainDefinitionMap.put("/favicon.ico", "anon");
filterChainDefinitionMap.put("/docs/**", "anon");
filterChainDefinitionMap.put("/layuimini/**", "anon");
filterChainDefinitionMap.put("/upload/**", "anon");

Binary file not shown.

After

Width: 256px  |  Height: 256px  |  Size: 162 KiB

Binary file not shown.

Before

Width: 391px  |  Height: 338px  |  Size: 8.9 KiB

@ -53,6 +53,7 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
http.csrf().disable()
.authorizeRequests()
.antMatchers("/css/**").permitAll()
.antMatchers("/favicon.ico").permitAll()
.antMatchers("/**").hasRole("ADMIN")
.and().formLogin().loginPage("/login.html").loginProcessingUrl("/login").permitAll()
.and().logout()

Binary file not shown.

After

Width: 256px  |  Height: 256px  |  Size: 162 KiB