Skip to content

ayetolusamuel/CRM-API_Implementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project : spring-boot-course

Starting server[xamp]

  • launch xamp and start mysql and note the port.

command to execute the jar file

  • java -jar -Dserver.port=80 spring-boot-course.jar{jar path}

compile the jar for deployment with maven

  • run this command in terminal: mvn package spring-boot:repackage

launch xamp and start mysql and note the port(3306).

Dependencies used

  • Spring Web

  • springfox-swagger-ui : https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui

  • springfox-swagger2 : https://mvnrepository.com/artifact/io.springfox/springfox-swagger2

  • mysql

  • lombok

  • data-jpa

  • you can also see other dependenciew in pom.xml file.

Configuration in application.properties file

  • spring.datasource.url=jdbc:mysql://localhost:3306/customer_database useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC

  • spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

  • spring.jpa.database-platform = org.hibernate.dialect.MySQL5Dialect

  • spring.jpa.hibernate.ddl-auto = update

  • server.port = 8080

  • you can also see other properties in application.properties file.

Implementing mockaroo [for mock data]

About

Build Resful API with Spring boot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages