Skip to content

Prototype for building spring boot multi page application with vite as build an dev server

Notifications You must be signed in to change notification settings

Theiaz/spring-boot-mpa-with-vite

Repository files navigation

Spring Boot MPA with vite

How to start

  • Build the application (including frontend) with ./mvnw clean verify.
  • Start the backend-application with ./mvnw spring-boot:run

Building frontend assets for production

Run npm run build

Development server

Run npm run dev

Change environment

In order to apply the right <script/> and <style/> sources, you need to apply either application.properties or application-dev.properties file.

Create a local application.properties within /src/main/resources/config with the following value:

spring.profiles.include=dev # dont apply if you want prod mode

About

Prototype for building spring boot multi page application with vite as build an dev server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published