-2

Can I run spring mvc project with graalvm?

(Spring MVC project and not Spring Boot)

If Yes: Is there any performance improvement? (Any spring mvc example with graalvm would be helpful.)

If No: why?

Rajat Gupta
  • 3
  • 1
  • 7

1 Answers1

0

Yes you can run Spring MVC applications with GraalVM. Here's a question that has more details about Spring and GraalVM: GraalVM and Spring Applications

Oleg Šelajev
  • 3,530
  • 1
  • 17
  • 25
  • Thanks for pointing to that article. But All Examples I come across are based on Spring boot and not Spring MVC (that is old spring mvc with manual configuration) and also the packaging of spring boot is JAR which can be passed to native image for conversion but spring mvc packaging is WAR. – Rajat Gupta Jul 04 '19 at 04:40
  • 1
    Right, sorry, indeed you're right. you can run your war packaged Spring MVC application on GraalVM, just as any other application running on Java 8. The performance impact depends on your codebase, workload, hardware, etc. – Oleg Šelajev Jul 05 '19 at 08:15
  • Check spring-graalvm-native – Xavier Bouclet Nov 29 '20 at 02:28