我做了一個簡單的 spring boot 應用程序,想用 activiti 作為 BPM 引擎。除了 JSTL 支持外,一切正常。任何包含 JSTL 標記的 JSP 都是錯誤的。這是jsp<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3"><head> <title>Spring Security Example</title></head><body><c:if test="${not empty param.error}"> <div class="error"> Your login attempt was not successful, try again.<br /> Reason: ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message} </div></c:if><form th:action="@{/login}" method="post"> <div> <label> User Name : <input type="text" name="username" /> </label> </div> <div> <label> Password: <input type="password" name="password" /> </label> </div> <div> <input type="submit" value="Sign In" /> </div></form></body></html>很有可能是沖突問題但是使用maven的enven插件沒有任何報錯
1 回答

子衿沉夜
TA貢獻1828條經驗 獲得超3個贊
解決方案是排除juel spi
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-spring-boot-starter</artifactId>
<version>7.1.43</version>
<exclusions>
<exclusion>
<groupId>de.odysseus.juel</groupId>
<artifactId>juel-spi</artifactId>
</exclusion>
<exclusion>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</exclusion>
</exclusions>
</dependency>
添加回答
舉報
0/150
提交
取消