Skip to content

This repository contains simple example of using spring-boot 2.x + nuxt.js (vue / vuetify) SPA with not-found routes configured on backend and frontend.

License

daggerok/spring-boot-nuxt-spa

Repository files navigation

spring-boot-nuxt-spa Build Status

Key points here is:

  1. add org.springframework.boot:spring-boot-starter-thymeleaf dependency in build.gradle

  2. point templates configuration spring.thymeleaf.prefix=classpath:/public/ to public folder in src/main/resources/application.properties

  3. during SPA build copy result index.html as src/main/resources/public/error/4xx.html and src/main/resources/public/error/5xx.html to handle errors with frontend app

  4. in vue.js frontend app configure error layout in frontend/layouts/error.vue

links:

other links to read:

About

This repository contains simple example of using spring-boot 2.x + nuxt.js (vue / vuetify) SPA with not-found routes configured on backend and frontend.

Topics

Resources

License

Stars

Watchers

Forks