jstl 不适用于 activiti 7 - 冲突库

我做了一个简单的 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插件没有任何报错


青春有我
浏览 113回答 1
1回答

子衿沉夜

解决方案是排除juel spi<dependency>&nbsp; &nbsp; <groupId>org.activiti</groupId>&nbsp; &nbsp; <artifactId>activiti-spring-boot-starter</artifactId>&nbsp; &nbsp; <version>7.1.43</version>&nbsp; &nbsp; <exclusions>&nbsp; &nbsp; &nbsp; &nbsp; <exclusion>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <groupId>de.odysseus.juel</groupId>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <artifactId>juel-spi</artifactId>&nbsp; &nbsp; &nbsp; &nbsp; </exclusion>&nbsp; &nbsp; &nbsp; &nbsp; <exclusion>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <groupId>commons-io</groupId>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <artifactId>commons-io</artifactId>&nbsp; &nbsp; &nbsp; &nbsp; </exclusion>&nbsp; &nbsp; </exclusions></dependency>
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java