AngularJS + Bootstrap Table + SpringBoot RestAPI

In this tutorial, we show how to implement a web application which uses AngularJS and Bootstrap Table to display data from SpringBoot RestAPIs.

Related posts:
AngularJS initialize data from RestAPIs for the first loading page | SpringBoot
AngularJs Http Delete Data from RestAPIs remote | SpringBoot & Bootstrap
AngularJs CrossSite HTTP Requests to SpringBoot RestAPIs
AngularJs POST-GET LIST Objects to SpringBoot server

I. Technologies

– Java 1.8
– Maven 3.6.1
– Spring Tool Suite – Version 3.9.0.RELEASE
– AngularJS
– Bootstrap
– Spring Boot – 1.5.7.RELEASE

II. Practice

In the tutorial, we build a SpringBoot project as below:

Angularjs Table display objects from RestAPIs - project structure

Step to do:
– Create Spring Boot project
– SpringBoot RestAPIs development
– AngularJS and Frontent development
– Run & Check results

1. Create Spring Boot project

Using Spring Tool Suite to create a Spring Starter Project. Add project info, then press Next for needed dependencies:

Angularjs Table display objects from RestAPIs - dependencies

After creating project successfully, open pom.xml file and check needed dependencies:

2. SpringBoot RestAPIs development
2.1 Create data models

– Create Address model:

– Create Customer model that includes Address model:

2.2 Create Web Controller to provide web view

2.3 Create RestController for GET request

3. AngularJS and Frontent development
3.1 Create AngularJs Application

3.2 Create Bootstrap Table view

4. Run & Check results

Run the project with SpringBoot mode.
-> Result:

Angularjs Table display objects from RestAPIs - results

Angularjs Table display objects from RestAPIs - data objects

III. Sourcecode

SpringBootAngularJsTable

By grokonez | October 29, 2017.

Last updated on May 8, 2018.



Related Posts


1 thought on “AngularJS + Bootstrap Table + SpringBoot RestAPI”

Got Something To Say:

Your email address will not be published. Required fields are marked *

*