因此,从spring-boot-legacy提供的内容开始,我实现了自己的ContextLoaderListener并将其连接到web.xml中:
public class SecurityContextLoaderListenerinitSpringBoot基本上与spring-boot-legacy提供的相同。环境,在这个环境中,springboot会自动初始化,因此我无法在自己的安全上下文中手动启动spring和Springboot<
:spring-boot-gradle-plugin:${springBootVersion}")}
id 'org.gretty' version '2.2.0:spring-boot-starter-web') runtimeOnly('mysql:mysql-connector-java:spring</e
在Eclipse中,我创建了一个项目,如下所示: File -> New -> Spring Starter project在项目方面,它导致Dynamic Web Module = 3.1,但我需要3.0。手动将其设置为3.0会导致“无法将项目方面动态Web模块的版本更改为3.0”。除了这个错误信息,我确信这不是改变它的正确方式,因为