Files

20 lines
1.9 KiB
Plaintext

Real, captured output of a clean startup with the checked-in pom.xml (both the
"spring" and "jpa" compilerPlugin entries present) and the checked-in
Application.kt (a plain, non-open `class Application`):
mvn -q -B clean package -DskipTests
java -jar target/kotlin-demo.jar
2026-10-08T10:59:52.685+05:30 INFO 1034 --- [kotlin-demo] [ main] com.ankurm.kotlin.ApplicationKt : Starting ApplicationKt v1.0.0 using Java 25.0.4.1.1 with PID 1034 (/home/claude/spring-boot-demo/kotlin/target/kotlin-demo.jar started by root in /home/claude/spring-boot-demo/kotlin)
2026-10-08T10:59:52.708+05:30 INFO 1034 --- [kotlin-demo] [ main] com.ankurm.kotlin.ApplicationKt : No active profile set, falling back to 1 default profile: "default"
2026-10-08T10:59:55.393+05:30 INFO 1034 --- [kotlin-demo] [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2026-10-08T10:59:57.021+05:30 INFO 1034 --- [kotlin-demo] [ main] o.s.boot.tomcat.TomcatWebServer : Tomcat initialized with port 8090 (http)
2026-10-08T10:59:57.044+05:30 INFO 1034 --- [kotlin-demo] [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2026-10-08T10:59:57.044+05:30 INFO 1034 --- [kotlin-demo] [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/11.0.24]
2026-10-08T11:00:02.258+05:30 INFO 1034 --- [kotlin-demo] [ main] com.ankurm.kotlin.ApplicationKt : Started ApplicationKt in 10.673 seconds (process running for 11.919)
No BeanDefinitionParsingException, no CGLIB proxy failure: @Service-annotated
BookService and the @Configuration Application class are both final Kotlin
classes in source, but the "spring" compiler plugin (kotlin-maven-allopen under
the hood) rewrote them to be open at compile time -- before Spring ever saw them.