diff --git a/资产系统开发笔记.md b/资产系统开发笔记.md index b4689df..53f896a 100644 --- a/资产系统开发笔记.md +++ b/资产系统开发笔记.md @@ -823,7 +823,7 @@ Copy code 创建一个配置类,继承`WebSecurityConfigurerAdapter`,并重写`configure(HttpSecurity http)`和`configure(AuthenticationManagerBuilder auth)`方法,分别设置安全配置和身份验证规则。例如: -``` +```java Copy code @Configuration @EnableWebSecurity