You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
buildscript {
ext {
SpringBootVersion = '3.2.0'
}
}
plugins {
id 'java'
id 'org.springframework.boot' version "${SpringBootVersion}"
id 'io.spring.dependency-management' version "1.1.4"
}
bootJar {
manifest {
attributes 'Main-Class': 'org.springframework.boot.loader.PropertiesLauncher'
attributes 'Start-Class': 'com.java.test.Application'
attributes 'Loader-Path': 'jar'
}
}
gradle build jar successfully.
java -jar test.jar failed as below message
Error: Could not find or load main class org.springframework.boot.loader.PropertiesLauncher
Caused by: java.lang.ClassNotFoundException: org.springframework.boot.loader.PropertiesLauncher
downgrade back to 3.1.5, java -jar test.jar works well.
The text was updated successfully, but these errors were encountered:
Upgrade spring boot from 3.1.5 to 3.2.0
gradle configuration
gradle build jar successfully.
java -jar test.jar failed as below message
downgrade back to 3.1.5, java -jar test.jar works well.
The text was updated successfully, but these errors were encountered: