Skip to content

Sample BoilerPlate for RestFul API used for Sewiwi.ID Project Sample with SpringBoot

Notifications You must be signed in to change notification settings

dwiputrarf/springboot-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POS For A Store Project

This is a RESTFUL API project using Springboot technology with following method for simple CRUD purposes :

  1. JPA Repository
  2. MySQL Database
  3. Hibernate
  4. Custom JSON ResponseEntity

Make your first project

  1. File > New > Maven Project.
  2. Select project name and location Dialog > Let it be default.
  3. Select an Archetype > choose maven-archetype-webapp.
  4. Enter Artifact id > enter your group id for the package path and enter your artifact id for your app name.
  5. Click finish and wait the maven update.

Setting your POM.XML Dependencies

  1. Add parent after url tag
 <parent>
 	<groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-parent</artifactId>
	<version>1.5.4.RELEASE</version>
 	<relativePath/>
 </parent>
  1. Add the dependency in dependecies tag
<dependency>
  	<groupId>org.springframework.boot</groupId>
  	<artifactId>spring-boot-devtools</artifactId>
  	<scope>runtime</scope>
  </dependency>
  <dependency>
  	<groupId>mysql</groupId>
  	<artifactId>mysql-connector-java</artifactId>
  	<scope>runtime</scope>
  </dependency>
  <dependency>
  	<groupId>org.springframework.boot</groupId>
  	<artifactId>spring-boot-starter-test</artifactId>
  	<scope>test</scope>
  </dependency>

Notes that web app have a dependency of data-jpa than that project require an application.properties file

Make application.properties file on res folder

  1. Right click on src/main/resources > new > other
  2. In create wizard dialog > go to general files > next
  3. In create new file resources > enter your directory to src/main/resources and your file name applicaton.properties

About

Sample BoilerPlate for RestFul API used for Sewiwi.ID Project Sample with SpringBoot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages