Thanks for providing me the opportunity to participate Coding chanllege of GLN.
This sample project is developed based on spring boot webapi tool/technology.
- Intellij Idea
- Java 1.8 or more
- maven(Integrated with Intellij)
- Postgresql (Please have a look the application.properties file for more details.)
- Api test tool. ( i.e postman)
Spring boot with myBatis mapper is implemented in this sample project. Please have a look sample : https://www.bswen.com/2018/04/springboot-springboot-and-mybatis-and-mysql-with-mapper-xml.html
WorkFlow : controller -> service -> Dto -> Mapper Interface -> xml Mapper -> Fetch result from DB.
- Please install Intellij
- Import as maven project
- Please install postgresql
- Please use API testing tool.
Alternative Approach : If DB is not functioning well, please enable DataSourceAutoConfiguration.class. @SpringBootApplication(exclude={SecurityAutoConfiguration.class /,DataSourceAutoConfiguration.class/ })
Then please comment all mapper interfaces and xml mappers. Test data is written in the service class so output can be displayed. PageHelper is integrated with mybatis. So, sample output could not work with pagination.
For any kind of queries please feel free to share me.
Thanks !
