daggerok / spring-boot-nuxt-spa

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:Vue 67.0%Language:Java 20.8%Language:JavaScript 12.2%