darrachequesne / spring-data-jpa-datatables

Spring Data JPA extension to work with the great jQuery plugin DataTables (https://datatables.net/)
Apache License 2.0
450 stars 172 forks source link

confilct #48

Closed wangfan0840 closed 7 years ago

wangfan0840 commented 7 years ago

when i use it on embed tomact the javax.el-api was conflict with tomcat-embed-el.

darrachequesne commented 7 years ago

You should be able to exclude the package:

<dependency>
  <groupId>com.github.darrachequesne</groupId>
  <artifactId>spring-data-jpa-datatables</artifactId>
  <version>3.1</version>
  <exclusions>
    <exclusion>
      <groupId>javax.el</groupId>
      <artifactId>javax.el-api</artifactId>
    </exclusion>
  </exclusions> 
</dependency>
wangfan0840 commented 7 years ago

Thank you for your reply! I have tried this method before, when I run it with intellij idea , everything is normal, but when I use Java -jar to deploy on the server, DataTables will not return data.

    <dependency>
        <groupId>org.apache.tomcat.embed</groupId>
        <artifactId>tomcat-embed-jasper</artifactId>
    </dependency>
    <dependency>
        <groupId>com.github.darrachequesne</groupId>
        <artifactId>spring-data-jpa-datatables</artifactId>
        <version>3.1</version>
        <exclusions>
            <exclusion>
                <groupId>javax.el</groupId>
                <artifactId>javax.el-api</artifactId>

            </exclusion>
        </exclusions>
    </dependency>
darrachequesne commented 7 years ago

Please reopen if needed.