zoukankan      html  css  js  c++  java
  • springboot 配置jpa启动报Error processing condition on org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration.pageableCustomizer

    springboot +gradle 配置jpa启动报Error processing condition on org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration.pageableCustomizer

    经过一步步查看删选是因为spring-data-jpa包的版本冲突导致。

    解决方案:

    修改gradle的build.gradle配置文件

    a.添加plugin("org.springframework.boot")

    b.修改引入方式 compile("org.springframework.boot:spring-boot-starter-data-jpa")

    c.新引入 compile 'org.springframework.boot:spring-boot-autoconfigure:1.5.7.RELEASE'

    build.gradle完整配置为:

    group 'com.360.keplerDevMananger'
    version '1.0-SNAPSHOT'

    apply plugin: 'java'
    apply plugin: 'idea'
    plugin("org.springframework.boot")
    apply plugin: 'war'

    buildscript {

    ext {
    springBootVersion = "1.5.2.RELEASE"
    }

    repositories {
    maven { url "https://repo.spring.io/libs-release" }
    mavenLocal()
    mavenCentral()
    }
    dependencies {
    classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion")
    classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.0.RELEASE")
    }
    }

    repositories {
    mavenCentral()
    }

    sourceCompatibility = 1.8
    targetCompatibility = 1.8

    dependencies {
    compile 'jstl:jstl:1.2'
    compile 'com.alibaba:fastjson:1.2.21'
    compile 'com.squareup.okhttp3:okhttp:3.9.1'
    compile 'commons-io:commons-io:2.5'
    compile 'org.apache.commons:commons-lang3:3.4'
    compile 'org.apache.ant:ant:1.8.2'
    compile 'org.apache.tomcat.embed:tomcat-embed-jasper:8.5.30'
    compile 'javax.servlet:javax.servlet-api:3.1.0'
    compile 'javax.servlet:jstl:1.2'
    runtime 'mysql:mysql-connector-java:5.1.45'
    compile("org.springframework.boot:spring-boot-starter-data-jpa")
    compile 'org.springframework.boot:spring-boot-starter-thymeleaf:1.5.2.RELEASE'
    compile 'org.springframework.boot:spring-boot-starter-parent:1.5.2.RELEASE'
    compile 'org.springframework.boot:spring-boot-starter-test:1.5.2.RELEASE'

    compile("org.springframework.boot:spring-boot-starter-web") {
    exclude module: "spring-boot-starter-tomcat"
    }

    testCompile('org.springframework.boot:spring-boot-starter-test:2.0.0.RELEASE')
    compile files('libs/MQSDK.jar')//引入自定义包
    testCompile group: 'junit', name: 'junit', version: '4.11'

    }

  • 相关阅读:
    研究称90%的癌症由非健康生活习惯导致
    章苏阳:早期投资,第一是看人,第二也是看人,第三还是看人!
    文章翻译第七章7-9
    文章翻译第七章4-6
    文章翻译第六章1-3
    翻译文章第六章8-11
    文章翻译第七章10-12
    VR虚拟现实技术在教育领域的前景展望
    围棋比赛不算什么,更牛的是机器人能预测未来
    c语言简单实现word count功能
  • 原文地址:https://www.cnblogs.com/jiangds/p/9003696.html
Copyright © 2011-2022 走看看