百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
N

ng-spring-boot

> 编程语言
开源

Spring Boot + Spring Data JPA + AngularJS 示例

187 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Spring Boot + Spring Data JPA + AngularJS 示例

Rapid prototyping with Spring Boot and AngularJS

This example demonstrates how Spring Boot, Spring Data JPA and in the front-end AngularJS can be used together to write web applications easily. In this code example I'm demonstrating this by providing a full CRUD-based web application in about 150 lines of code (100 lines of Java code and 50 lines of JavaScript code).

Frameworks

Front-end

Twitter Bootstrap

For rapidly creating prototypes of a web application, a UI toolkit or library will become really handy. There are many choices available, and for this example I chose Twitter Bootstrap.

AngularJS

AngularJS is a MVC based framework for web applications, written in JavaScript. It makes it possible to use the Model-View-Controller pattern on the front-end. It also comes with several additional modules. In this example I'm also using angular-resource, which is a simple factory-pattern based module for creating REST clients.

Back-end

Spring Boot

One of the hassles while creating web applications using the Spring Framework is that it involves a lot of configuration. Spring Boot makes it possible to write configuration-less web application because it does a lot for you out of the box. For example, if you add HSQLDB as a dependency to your application, it will automatically provide a datasource to it. If you add the spring-boot-starter-web dependency, then you can start writing controllers for creating a web application.

Spring Data JPA

Spring Data JPA allows you to create repositories for your data without even having to write a lot of code. The only code you need is a simple interface that extends from another interface and then you're done. With Spring Boot you can even leave the configuration behind for configuring Spring Data JPA, so now it's even easier.

Installation

Installation is quite easy, first you will have to install some front-end dependencies using Bower:

bower install

Then you can run Maven to package the application:

mvn clean package

Now you can run the Java application quite easily:

bash
cd target
java -jar ng-spring-boot-1.0.0.jar

Related articles

  • Rapid prototyping with Spring Boot and AngularJS
  • Easy integration testing with Spring Boot and REST-Assured
  • Unit testing with Mockito and AssertJ
  • Executing Jasmine tests with Maven
  • Testing your Spring Data JPA repository
  • Testing your Spring Boot application with Selenium

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Java

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言