Closed fragaLY closed 1 year ago
In addition, right now after the second bootBuildImage:
2022-09-28 13:36:14.696 DEBUG 1 --- [ctor-http-nio-4] o.s.w.s.adapter.HttpWebHandlerAdapter : [e301f6d9-3] HTTP GET "/api/v1/countries"
2022-09-28 13:36:14.696 DEBUG 1 --- [ctor-http-nio-4] o.s.w.r.handler.SimpleUrlHandlerMapping : [e301f6d9-3] Mapped to ResourceWebHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/]]
It is due to missing reflection entries Spring Native can't detect because used in the body of the method. You can fix this by adding @TypeHint(types = CountryResponse.class, access = { TypeAccess.DECLARED_METHODS, TypeAccess.DECLARED_FIELDS })
to the application class.
Hello, Spring-Native team and ambassadors.
I've faced a problem related to supported media types. In not native solution in works correctly. Absolutely no changes in the code base. I have only changes related to Gradle setup of AOT and etc.
Code samples:
All the sources you could find there: https://github.com/fragaLY/performance-researches/tree/master/spring-boot-reactive-native