Home
Softono
spring-boot-nuxt-spa

spring-boot-nuxt-spa

Open source MIT Vue
25
Stars
11
Forks
1
Issues
2
Watchers
1 year
Last Commit

About 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.

Platforms

Web Self-hosted

Languages

Vue

Links

= spring-boot-nuxt-spa image:https://travis-ci.org/daggerok/spring-boot-nuxt-spa.svg?branch=master["Build Status", link="https://travis-ci.org/daggerok/spring-boot-nuxt-spa"]

Key points here is:

. add org.springframework.boot:spring-boot-starter-thymeleaf dependency in link:/build.gradle[build.gradle] . point templates configuration spring.thymeleaf.prefix=classpath:/public/ to public folder in link:tree/master/src/main/resources/application.properties[src/main/resources/application.properties] . 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 . in vue.js frontend app configure error layout in link:tree/master/frontend/layouts/error.vue[frontend/layouts/error.vue]

links:

other links to read: