使用带有安全性的spring启动器-父2.0.5处理示例弹簧引导应用程序。主spring引导应用程序类扩展了SpringBootServletInitializer。在tomcat中生成并工作良好的War文件。我在websphere application server上部署了相同的war文件,然后应用程序就启动了,但是spring引导似乎没有被初始化。我在日志中没有看到任何错误。对于在websphere中初始化的应用程序,应该做些什么吗?
发布于 2022-04-01 13:02:19
通过将web.xml更新为
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >
<web-app>
<display-name>Archetype Created Web Application</display-name>
</web-app>到最新格式
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsc"
id="webApp_ID" version="3.1">
<display-name>Archetype Created Web Application</display-name>
</web-app>https://stackoverflow.com/questions/71696062
复制相似问题