我正在使用Spring引导运行一个简单的桌面应用程序。java.lang.IllegalArgumentException: A ServletContext is required to configure default servlet handling我的主修班:package com.pb.relay;
import org.springframework.boot
我在Servlet2.5容器中有一个spring引导配置,它在一个专门的安全上下文/特权操作上下文中手动启动。因此,从spring-boot-legacy提供的内容开始,我实现了自己的ContextLoaderListener并将其连接到web.xml中:
public class SecurityContextLoaderListener,从长远来看,我必须迁移到Servlet 3.0环境,在这个环境中,
我在我的项目中导入了一个Spring,因为它包含一个我想要使用的类,但是我不想运行自动配置。我可以从初学者中看到,有一个META-INF/spring.factories文件,它既具有自动配置,也定义了应用程序侦听器。# Auto Configurations
org.springframework.boot.autoconfigure.EnableAutoConfigu
我在springboot上工作,可以访问两(2)个数据源。应用程序使用HikariCp连接到Postgresql和Mongodb,但我收到mongodb错误。(SpringApplication.java:693) [spring-boot-1.5.10.RELEASE.jar:1.5.10.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplicati