Posts

Basic CRUD Application Using Spring Boot REST Web Service with AngularJS

Image
Basic CRUD Application Using Spring Boot REST Web Service with AngularJS In my previous blog , we learned about how easy to develop RESTful Web Service with Spring Boot. Now we are focusing only on front-end. Today we learn about how to consume RESTful Web Service using AngularJS. We also use thymleaf for Page Template and Bootstrap for some styling purpose. Here is the final look of our Basic AngularJS CRUD Application. Final Look of AngularJS CRUD Application Here is the project structure which extends from previous one. Project Structure Now Fisrt create an Index.html file as shown above. Index.html <!DOCTYPE html > < html lang= "en" xmlns= "http://www.w3.org/1999/xhtml" xmlns: th = "http://www.thymeleaf.org" xmlns: layout = "http://www.w3.org/1999/xhtml" > < head th :replace= "fragments/header :: head" ></ head > < body ng-app= "app" ng-c...

Spring Boot RESTful CRUD API Using JPA Data, Hibernate, MySQL.

Image
Spring Boot RESTful CRUD API Using JPA Data, Hibernate, MySQL Project Structure Here is the updated project structure. We will continue with our previous example. Updated Project Structure Add Dependencies First we need to add the following dependencies in our build.gradle file: spring-boot-starter-data-jpa mysql-connector-java spring-boot-starter-data-rest // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jpa compile ( 'org.springframework.boot:spring-boot-starter-data-jpa' ) // https://mvnrepository.com/artifact/mysql/mysql-connector-java compile group : 'mysql' , name : 'mysql-connector-java' , version : '5.1.6' // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-rest compile group : 'org.springframework.boot' , name : 'spring-boot-starter-data-rest' , version : '1.0.0.RELEASE' Create MySQL Database Here is the scr...

How To Run Spring Boot Web Application On External Tomcat

Image
How To Run Spring Boot Web Application On External Tomcat. By default Spring Boot Web Application is ready for Production/Deployable and runs on Embedded Tomcat Server. If you want to run it on External Tomcat Server Instance, you first need to configure it. In previous post we learned how to create simple hello world spring boot web application . we used our previous spring boot web application in this example. In Development Environment External Tomcat is very handy. So lets start to configure it in Intellij.  Before start anything you just run bootWar Gradle task. It will generate a war file of our project at build/libs/springbootdemo1.war  Note: For simplify war file name remove the version in build.gradle       file. Create a war file using bootWar We will use this war file as an Artifact in External Tomcat. Now click on Edit Run/debug Configuration button and Add New Configuration by clicking on very top left most gree...