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
{{ message }}
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
Introduce native applications guidelines for Spring contributors #256
proxyBeanMethods=false on configurations to avoid CGLIB proxies
Favor using functional constructs rather than reflection: method references and lamdas when possible instead of reflection like in Spring Boot LoggingSystem.
Build time initialization + static initialization when optional libraries are used to allow automatic build time code removal
changed the title [-]Introduce native guidelines for Spring contributors[/-][+]Introduce native applications guidelines for Spring contributors[/+]on Sep 7, 2020
Might I suggest a note that the UID and GID running the application are different after building container as native compared to non native container.
Not relevant in many cases but took me some time to figure that one out when needed.
I also noted that kotlin data classes seems to fail if they are used as DTOs and have not a default set for all var in the constructor also same kind of issue if java classes are using lombok (com.fasterxml.jackson.databind.exc.InvalidDefinitionException).
Also some errors I haven't noted with @Entity/@document classes combined with lombok.
Not sure if these are because of bad configuration on my side but thought I mentioned it.
Activity
[-]Introduce native guidelines for Spring contributors[/-][+]Introduce native applications guidelines for Spring contributors[/+]grekier commentedon Feb 10, 2021
Might I suggest a note that the UID and GID running the application are different after building container as native compared to non native container.
Not relevant in many cases but took me some time to figure that one out when needed.
I also noted that kotlin data classes seems to fail if they are used as DTOs and have not a default set for all var in the constructor also same kind of issue if java classes are using lombok (com.fasterxml.jackson.databind.exc.InvalidDefinitionException).
Also some errors I haven't noted with @Entity/@document classes combined with lombok.
Not sure if these are because of bad configuration on my side but thought I mentioned it.
sdeleuze commentedon Feb 16, 2021
@ekcasey Could you please comment on the UID/GID point raised above?
@grekier The Kotlin reflection issue should be fixed via KT-44594, see #419 related issue.
sdeleuze commentedon Feb 23, 2021
TODO: mention it is possible to debug
spring-aot-maven-pluginwithmvnDebug.