摘要: <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugin> <groupId>c 阅读全文
posted @ 2020-12-27 22:59 Zhentiw 阅读(100) 评论(0) 推荐(0)
摘要: application-docker.properties: spring.datasource.url=jdbc:mysql://${server}:${port}/explorecali spring.datasource.username=${dbuser} spring.datasource 阅读全文
posted @ 2020-12-27 22:52 Zhentiw 阅读(120) 评论(0) 推荐(0)
摘要: application-mysql.properties: spring.datasource.url=jdbc:mysql://ec-mysql:3306/explorecali spring.datasource.username=cali_user spring.datasource.pass 阅读全文
posted @ 2020-12-27 22:44 Zhentiw 阅读(81) 评论(0) 推荐(0)
摘要: Before build the docker file, build the jar package: mvn package -DskipTests=true Dockerfile: FROM java:8 WORKDIR / ADD target/explorecali-2.0.0-SNAPS 阅读全文
posted @ 2020-12-27 22:32 Zhentiw 阅读(81) 评论(0) 推荐(0)
摘要: Extending, Securing and Dockerizing Spring Boot Microservices Final Product requires External MySql Database. Install Docker For Mac/Windows/Linux ### 阅读全文
posted @ 2020-12-27 22:23 Zhentiw 阅读(82) 评论(0) 推荐(0)
摘要: Testing JWT proteceted endpoint: /** * HTTP POST /tours/{tourId}/ratings */ @Test public void createTourRating() throws Exception { restTemplate.excha 阅读全文
posted @ 2020-12-27 22:09 Zhentiw 阅读(219) 评论(0) 推荐(0)
摘要: Provider: package com.example.ec.security; import com.example.ec.domain.Role; import io.jsonwebtoken.*; import org.springframework.beans.factory.annot 阅读全文
posted @ 2020-12-27 22:01 Zhentiw 阅读(168) 评论(0) 推荐(0)