Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coder-acjhp/spring-boot-restful-test
Simple spring-boot-jpa-restful api
https://github.com/coder-acjhp/spring-boot-restful-test
embedded-apache-derby spring-boot spring-data-jpa spring-rest-api
Last synced: 4 days ago
JSON representation
Simple spring-boot-jpa-restful api
- Host: GitHub
- URL: https://github.com/coder-acjhp/spring-boot-restful-test
- Owner: Coder-ACJHP
- Created: 2018-02-20T10:54:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-21T18:53:09.000Z (almost 7 years ago)
- Last Synced: 2024-11-08T00:35:59.147Z (about 2 months ago)
- Topics: embedded-apache-derby, spring-boot, spring-data-jpa, spring-rest-api
- Language: Shell
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Spring-boot-data-jpa-rest-api example
In this repository I will create simple spring-boot-jpa-restful api and for testing it I used Apache Derby embedded database.
I saw in some tutorials they not adding any annotation on
ApplicationStart.class
but for me not worked so we have to add some annotations to our start class to say to Spring Hey Spring we have Service classes and Controller classes located in '------' packageSome thing like this :
@SpringBootApplication
@EntityScan(basePackages = "com.coder.web.rest.entity")
@ComponentScan(basePackages = "com.coder.web.rest")
@EnableJpaRepositories(basePackages = "com.coder.web.rest.service")
public class SpringBootRestfulJpaApplication {public static void main(String[] args) {
SpringApplication.run(SpringBootRestfulJpaApplication.class, args);
}
}
NOTE : For making your api test you can use POSTMAN application as plugin on Chrome or as standalone application on your computer.