Angularjs Springmvc Sample Boot

A RESTful sample using Spring Boot, Spring MVC, Spring Data and Angular/Bootstrap.
Alternatives To Angularjs Springmvc Sample Boot
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Hsweb Framework8,0661a day ago27June 20, 20224apache-2.0Java
hsweb (haʊs wɛb) 是一个基于spring-boot 2.x开发 ,首个使用全响应式编程的企业级后台管理系统基础项目。
Tech Interview3,263
7 months ago13
:loudspeaker:🙍 tech interview
2 years ago3
Intellij Idea Tutorial2,094
5 months agomit
🌻 This is a tutorial of IntelliJ IDEA, you can know how to use IntelliJ IDEA better and better.
2 years ago17apache-2.0JavaScript
Spring,SpringBoot 2.0,SpringMVC,Mybatis,mybatis-plus,motan/dubbo分布式,Redis缓存,Shiro权限管理,Spring-Session单点登录,Quartz分布式集群调度,Restful服务,QQ/微信登录,App token登录,微信/支付宝支付;日期转换、数据类型转换、序列化、汉字转拼音、身份证号码验证、数字转人民币、发送短信、发送邮件、加密解密、图片处理、excel导入导出、FTP/SFTP/fastDFS上传下载、二维码、XML读写、高精度计算、系统配置工具类等等。
Spring Boot1,186
9 months ago13Java
spring-boot 项目实践总结
Spring Mvc Quickstart Archetype1,016
4 years ago8Java
The project is a Maven archetype for Spring MVC web application.
Problem Spring Web9192,4222121 days ago42November 09, 202139mitJava
A library for handling Problems in Spring Web MVC
a year agomit
:punch: 持续更新,Java Android 近几年最全面的技术点以及面试题 供自己学习使用
6 months ago19mitJava
Spring MVC Tutorial for beginners - In 25 Small Steps
Alternatives To Angularjs Springmvc Sample Boot
Select To Compare

Alternative Project Comparisons


An example application using AnguarJS/Bootstrap as frontend and Spring MVC as REST API producer.

More details about the source codes, please read the online GitBook: Building REST APIs with Spring MVC.

NOTE: This project is under maintenance, no more new features added in future. If you are looking for the new Spring Boot 2 and Angular 5, check angular-spring-reactive-sample.

Technology stack:

  • Spring Boot
  • Spring MVC
  • Spring Data JPA
  • JPA
  • Hibernate 5.2
  • Spring Security
  • Swagger/Swagger2Markup/Spring Rest Docs
  • Spring Test/JUnit/Mockito/JBehave/RestAssured
  • Lombok
  • ModelMapper
  • AngularJS
  • Bootstrap

This version improved the original version(without Spring Boot), including:

  • Introduction of Gulp build system to processing the static resources
  • The frontend UI can be run standalone via NodeJS eco-system
  • An option provided and allow you to package the static resources as part of final jar and run the application via mvn spring-boot:run directly


  • JDK 8

    Oracle Java 8 is required, go to Oracle Java website to download it and install into your system.

    Optionally, you can set JAVA_HOME environment variable and add <JDK installation dir>/bin in your PATH environment variable.

  • Apache Maven

    Download the latest Apache Maven from, and uncompress it into your local system.

    Optionally, you can set M2_HOME environment varible, and also do not forget to append <Maven Installation dir>/bin your PATH environment variable.

  • NodeJS

    NodeJS is required to build the frontend static resources.

    Download NodeJS and install it into your local system.

    After it is installed, open terminal, and using node -v command to confirm.

    node -v 

    bower is also requried to install the runtime dependencies, and gulp is chosen as our build tools for the statics resources.

    npm install -g bower
    npm install -g gulp

Get the source codes

Get a copy of the source codes into your local system.

git clone

Run the project

You can use one of the following approaches to run this project.

Run frontend UI and backend respectively

  1. Run the backend API server via Spring Boot.

    mvn spring-boot:run

    The backend APIs will run on port 9000.

  2. Run the frontend UI standalone.

    npm install
    bower install
    gulp serve

    By default, gulp serves the frontend UI static resources on port 3000.

  3. Go to http://localhost:3000 to test it.

Run the project via Spring Boot maven plugin

  1. Run the following command to resovle the dependencies of the frontend static resources.

    npm install
    bower install
  2. Run the backend API server with spring-boot command. The parameter -Dstatic-ui will copy the static resources and package into the jar archive.

    mvn spring-boot:run -Dstatic-ui
  3. Go to http://localhost:9000 to test it.

If you want to explore the REST API docs online, there is a Swagger UI configured for visualizing the REST APIs, just go to http://localhost:9000/swagger-ui.html.

Generate static REST API reference documentation

I have moved the REST docs generation configuration into a standalone Maven profile.

Execute the following command to generate HTML and PDF format files for your REST APIs from Swagger API description file and Spring test code snippets(as code samples).

mvn clean package -Drestdocs

The detailed configuration is explained in API documention section.

When it is done, check the generated static docs in target/asciidoc folder, it includes a HTML 5 file(under html folder), and a PDF file(in pdf folder).

Open the pdf document in Adobe Reader, it looks like.



You can run the project in multistage Docker building development environment, check Multistage Builds.

Popular Mvc Projects
Popular Spring Projects
Popular Software Architecture Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Spring Boot
Spring Mvc
Spring Data Jpa
Spring Data