第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

Spring Tool Suite org.joda 在 Gradle 項(xiàng)目中無法解析

Spring Tool Suite org.joda 在 Gradle 項(xiàng)目中無法解析

慕標(biāo)琳琳 2021-07-21 17:46:09
我已經(jīng)使用 Spring Tool Suite 啟動了一個 Gradle 項(xiàng)目。按照本教程:https : //spring.io/guides/gs/gradle/ 它表明我應(yīng)該在我的 build.gradle 文件中添加 org.joda 依賴項(xiàng),在類中導(dǎo)入依賴項(xiàng),構(gòu)建包,然后它應(yīng)該可以使用。但是,當(dāng)我這樣做并重新構(gòu)建項(xiàng)目并運(yùn)行它時,出現(xiàn)錯誤:Exception in thread "main" java.lang.Error: Unresolved compilation problems:     LocalTime cannot be resolved to a type    LocalTime cannot be resolved to a type    at firstGradleProject.HelloWorld.main(HelloWorld.java:7)我的依賴項(xiàng)似乎已正確設(shè)置:dependencies {    compile('org.springframework.boot:spring-boot-starter')    testCompile('org.springframework.boot:spring-boot-starter-test')    compile('joda-time:joda-time:2.2')    testCompile('junit:junit:4.12')}如何在我的 Gradle Spring 項(xiàng)目中導(dǎo)入這個依賴項(xiàng)并讓它編譯?我的整個 build.gradle 文件看起來像:buildscript {    ext {        springBootVersion = '2.0.4.RELEASE'    }    repositories {        mavenCentral()    }    dependencies {        classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")    }}apply plugin: 'java'apply plugin: 'eclipse'apply plugin: 'org.springframework.boot'apply plugin: 'io.spring.dependency-management'group = 'com.example'version = '0.0.1-SNAPSHOT'sourceCompatibility = 1.8targetCompatibility = 1.8jar {    baseName = 'gs-gradle'    version =  '0.1.0'}repositories {    mavenCentral()}dependencies {    compile('org.springframework.boot:spring-boot-starter')    testCompile('org.springframework.boot:spring-boot-starter-test')    compile('joda-time:joda-time:2.2')    testCompile('junit:junit:4.12')}
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 330 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號