Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Introduce native applications guidelines for Spring contributors #256

Closed

Description

@sdeleuze
  • 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
  • Move reflection from runtime to build-time
  • etc.

Activity

  1. added this to the v0.8.1 milestone on Aug 30, 2020
  2. self-assigned this
    on Aug 30, 2020
  3. changed the title [-]Introduce native guidelines for Spring contributors[/-] [+]Introduce native applications guidelines for Spring contributors[/+] on Sep 7, 2020
  4. modified the milestones: v0.8.1, v0.8.2 on Sep 21, 2020
  5. modified the milestones: v0.8.2, v0.9.0 on Oct 19, 2020
  6. grekier commented on Feb 10, 2021

    @grekier
    Contributor

    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.

  7. sdeleuze commented on Feb 16, 2021

    @sdeleuze
    ContributorAuthor

    @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.

  8. sdeleuze commented on Feb 23, 2021

    @sdeleuze
    ContributorAuthor

    TODO: mention it is possible to debug spring-aot-maven-plugin with mvnDebug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: documentation

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions