Create Data Table with AngularJS and Spring Boot

Step 1: Create Application using
with Web and SQL and JPA

Step 2: Download and extract zip to local and run mvn clean package in the application directory
it will download the all the dependencies to local

Step3: Setup the Database details in located in src/main/resources

spring.datasource.driver-class-name=com.mysql.jdbc.Driver = org.hibernate.dialect.MySQL5Dialect = false
spring.jpa.hibernate.ddl-auto = update

Step 4:
create a Table in database
Create a JPA Class ( that contains setters and getters )

package com.registration;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

public class Registration {

private Integer id;
private String name;
private Integer age;
private Integer passport_id;

public Integer getId() {
return id;

public void setId(Integer id) { = id;

public String getName() {
return name;

public void setName(String name) { = name;

public Integer getAge() {
return age;

public void setAge(Integer age) {
this.age = age;

public Integer getPassport_id() {
return passport_id;

public void setPassport_id(Integer passport_id) {
this.passport_id = passport_id;


create interface

package com.registration;


public interface RegistrationJpa extends JpaRepository {


in our Registration Application

package com.registration;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

public class RegistrationApplication {

private RegistrationJpa registrationJpa;

public static void main(String[] args) {, args);

public List getRecords(@RequestBody RegistrationSequence registrationSequence) throws IOException{

// List list= registrationJpa.findAll();
return new HibernateCallBackImpl(registrationSequence);


Add a Comment

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