แอพ Ecom - Spring Boot
REST APIs โดยใช้ Spring Boot สำหรับแอป ECOM
การพึ่งพาสตาร์ทสปริงของสปริง
- org.springframework.boot: Spring-Boot-Starter-Web-สตาร์ทเตอร์สำหรับการสร้างเว็บรวมถึงการพักผ่อนแอพพลิเคชั่นที่ใช้ Spring
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web - org.springframework.boot: Spring-Boot-Starter-Data-JPA-เริ่มต้นสำหรับการใช้สปริงข้อมูล JPA กับไฮเบอร์เนต
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jpa - org.springframework.boot: Spring-Boot-Starter-Validation-Starter สำหรับการใช้การตรวจสอบความถูกต้องของ Java Bean กับ Hibernate Validator
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-validation - org.springframework.boot: การทดสอบสปริง-บู๊ท
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-test
การพึ่งพาอื่น ๆ
- mysql: mysql-connector-java-ไดรเวอร์ jdbc สำหรับ mysql
https://mvnrepository.com/artifact/mysql/mysql-connector-java - org.projectlombok: Lombok - การจัดการทรัพยากรอัตโนมัติ, การสร้าง getters อัตโนมัติ, setters, equals, hashcode และ toString และอื่น ๆ
https://mvnrepository.com/artifact/org.projectlombok/lombok - org.mapstruct: mapstruct โปรเซสเซอร์คำอธิบายประกอบสำหรับการสร้าง mappers ถั่วชนิดปลอดภัย https://mvnrepository.com/artifact/org.mapstruct/mapstruct
- io.springfox: SpringFox-Swagger2-เอกสาร JSON API สำหรับแอปพลิเคชันตามฤดูใบไม้ผลิ
- io.springfox: Springfox-swagger-ui-เอกสาร JSON API สำหรับแอปพลิเคชันตามฤดูใบไม้ผลิ
การกำหนดค่า Swagger
- การเพิ่ม Spring Fox Swagger2 และ Swagger UI Depedency
- การเปิดใช้งาน Swagger ในรหัสด้วย @enablewagger2 คำอธิบายประกอบ
- การกำหนดค่า swagger โดยการสร้างถั่วของคลาสใบปะหน้า