Closed
Description
We don't provide such support directly on Spring Native side because we only support what supported on start.spring.io, but I will be happy to provide some guidance and help if somebody is interested to contribute it here.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
bnasslahsen commentedon May 17, 2021
Hi @sdeleuze,
I confirm WIP to have GraalVM fully supported together with spring-native.
It should be working, out of the box without any additional configuration starting from the next release
v1.5.9
!The main missing piece is related to oracle/graal#1108 or spring-attic/spring-native#157, but i added workaround for it 60e458e.
I will add a simple demos project that will be available soon using the latest SNAPSHOT.
sdeleuze commentedon May 18, 2021
Amazing, I will mention Springdoc in Spring Native documentation when released.
bnasslahsen commentedon May 23, 2021
Hi @sdeleuze,
I confirm, that release
springdoc-openapi v1.5.9
is now released.There is huge improvement of
load time during the first and second access to the swagger-ui
.The improvement is just impressive with the native image on many levels.
The springdoc demos applications, has been built using
paketobuildpacks/builder:tiny
, with the default configuration (no optimization).VM characteristics:
Components versions:
springdoc-openapi-spring-boot-2-webflux demo results:
Image
(sec)
Tweets-API
1st run (ms)
Stream-API
2nd run (ms)
Size
(MB)
Usage
(MB)
Usage
(%)
springdoc-openapi-spring-boot-2-webmvc demo results:
Image
(sec)
Users-API
1st run (ms)
Stores-API
2nd run (ms)
Size
(MB)
Usage
(MB)
Usage
(%)
goafabric commentedon Jul 10, 2021
@bnasslahsen
Thanks for your support .. i barely missed this post .. and up to know i did not know that there are two OpenApi Implementations for Spring (Springfox is the one I knew)
I tried version 1.5.9 with the latest Spring Native 0.10.1 ... unfortunately its not working out of the box.
The code Compiles and i can access the OpenAPI page .. but it than throws one of those dreaded
NativeHint Exceptions ...
Indication missing Nativehints on RestController and SynthesizedAnntation .. even setting this does not resolve the issue.
Is there anything special that has to be adjusted here ? The Demo Example e.g. excludes the health endpoint
thx
bnasslahsen commentedon Jul 26, 2021
@goafabric,
As mentioned in the previous post, the demo was validated with:
For the support for newer versions which, it's better to create a separate enhancement request. (I have now created #1225)