File -> Settings -> Build, Execution, Deployment -> Compiler -> Build project automatically
File -> Settings -> Advenced Settings -> Allow auto-make to start even if developed application is running
build.gradle output-Verzeichnis setzen
idea {
module {
inheritOutputDirs = false
outputDir = file("$buildDir/classes/java/main/")
}
}
build.gradle DevTools müssen im das jar eingebaut werden, dass in das Iamge kommt.
bootJar {
classpath configurations.developmentOnly
}
dependencies {
implementation('org.springframework.boot:spring-boot-starter-web')
developmentOnly("org.springframework.boot:spring-boot-devtools")
}
- Image bauen
- ausführen
- RemoteSpringApplication starten
- Code editeren
Zonky braucht unter Windows
kafka-console-consumer.sh --topic ax-meetup-topic --from-beginning --bootstrap-server localhost:9092