解决Could not autowire. No beans of ‘ServerHttpSecurity’ type found.
springboot版本:3.0.2
解决方案:查看是否缺少依赖
<!-- Spring Security -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
</dependency>
添加@EnableWebFluxSecurity注解
加@EnableWebFluxSecurity注解