java - Spring-Boot java.lang.NullPointerException: null at javax.el.CompositeELResolver.add(CompositeELResolver...
我正在尝试构建一个基本的 Spring-Boot 应用程序。我在控制器中使用 javax.validation。它将 EL 标记识别为 <c:out value="X" />,但是
问题描述
解决方案
我发现使应用程序工作的唯一方法。是将spring-boot配置为spring-mvc应用。
我在 POM 中进行了更改:(已添加)
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
<!--The rest of dependencies passed from provided to compile-->
在 SpringApplication 中更改了一些 TomcatConfigurationBean(删除)
部署在 Tomcat 8.1 中,所有 <c:Tags 工作正常,无需更改
推荐阅读
- c# - net core API 对象数组参数始终为空
- javascript - 如何从函数调用创建对象数组?
- nginx - nginx没有将查询字符串转发到keycloak
- node.js - 在 jenkins 中构建 docker 镜像
- python - 字符串到数据框
- reactjs - Ipfs-http-client 在我的反应应用程序中不是一个可识别的模块
- python - 使用opencv处理图像
- python - Discord.py RuntimeError:事件循环已关闭
- excel - 如何确定为交易购买的累计股票数量?
- fastapi - FastAPI 请求正文的 JSON 模式
我正在尝试构建一个基本的 Spring-Boot 应用程序。我在控制器中使用 javax.validation。它将 EL 标记识别为 <c:out value="X" />,但是
问题描述
解决方案
我发现使应用程序工作的唯一方法。是将spring-boot配置为spring-mvc应用。
我在 POM 中进行了更改:(已添加)
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
<!--The rest of dependencies passed from provided to compile-->
在 SpringApplication 中更改了一些 TomcatConfigurationBean(删除)
部署在 Tomcat 8.1 中,所有 <c:Tags 工作正常,无需更改
推荐阅读
- c# - net core API 对象数组参数始终为空
- javascript - 如何从函数调用创建对象数组?
- nginx - nginx没有将查询字符串转发到keycloak
- node.js - 在 jenkins 中构建 docker 镜像
- python - 字符串到数据框
- reactjs - Ipfs-http-client 在我的反应应用程序中不是一个可识别的模块
- python - 使用opencv处理图像
- python - Discord.py RuntimeError:事件循环已关闭
- excel - 如何确定为交易购买的累计股票数量?
- fastapi - FastAPI 请求正文的 JSON 模式