Код: Выделить всё
group 'eresult'
version '1.0-SNAPSHOT'
buildscript {
repositories {
mavenCentral()
}
dependencies{
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.10.RELEASE")
}
}
apply plugin: "java"
println "Gradle "+gradle.gradleVersion
apply plugin: 'org.springframework.boot'
jar {
manifest {
attributes(
'Main-Class': 'it.eresult.Application'
)
}
}
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile ("org.springframework.boot:spring-boot-starter-web")
compile group: 'com.microsoft.sqlserver', name: 'mssql-jdbc', version: '7.2.0.jre8'
compile 'com.google.code.gson:gson:2.8.6'
}
Это конфигурация, чтобы начать применение:
Это конфигурация, чтобы начать применение:
Это конфигурация. src = "https://i.sstatic.net/boupmevz.png"/>
Если я попытаюсь запустить приложение, я вижу следующую ошибку:
Код: Выделить всё
> Task :it.eresult.Application.main() FAILED
Execution failed for task ':it.eresult.Application.main()'.
> Process 'command 'C:/Users/michele.castriotta/.jdks/corretto-1.8.0_422/bin/java.exe'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Подробнее здесь: https://stackoverflow.com/questions/795 ... it-value-1