spring-boot-starter-spa

Zero configuration single page app configuration for spring boot

Лицензия

Лицензия

Категории

Категории

Spring Boot Контейнер Микросервисы
Группа

Группа

com.github.bgalek.spring.boot
Идентификатор

Идентификатор

spring-boot-starter-spa
Последняя версия

Последняя версия

1.1.0
Дата

Дата

Тип

Тип

pom.sha512
Описание

Описание

spring-boot-starter-spa
Zero configuration single page app configuration for spring boot
Ссылка на сайт

Ссылка на сайт

https://github.com/bgalek/spring-boot-starter-spa
Система контроля версий

Система контроля версий

https://github.com/bgalek/spring-boot-starter-spa

Скачать spring-boot-starter-spa

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.springframework.boot : spring-boot-starter jar 2.3.1.RELEASE
org.springframework.boot : spring-boot-starter-web jar 2.3.1.RELEASE

Модули Проекта

Данный проект не имеет модулей.

Spring Boot Starter - Single Page App

Zero configuration single page app configuration for spring boot

Build Maven Central

Why?

Single Page Apps require one thing: return index.html on HTML request.

Sometimes it's wise to separate your apps (api backend & frontend backend + frontend) - but then you'll have to deal with versioning both aps in compatible way.

For simple use cases it's totally ok to have spring-boot serve your SPA application (build i.e. by webpack).

Spring-boot does not support this feature out of the box. I've found multiple workarounds (404 page filters, manual file checking etc.) and decided to make no-brainer library to handle this problem.

Usage

Add library dependency:

compile "com.github.bgalek.spring.boot:spring-boot-starter-spa:1.1.0"

Copy your fontend application to /public or /static folder during your app build phase.

Compatibility

This configuration won't affect your:

  • API calls (registered Controllers)
  • Existing static files

Версии библиотеки

Версия
1.1.0
1.0.0