上一页 1 ··· 158 159 160 161 162 163 164 165 166 ··· 494 下一页
摘要: public class Code { public static void main(String[] args) { Arrays.asList("red", "green", "blue") .stream() .sorted() .findFirst() .ifPresent(System. 阅读全文
posted @ 2020-12-30 03:43 Zhentiw 阅读(74) 评论(0) 推荐(0)
摘要: public class Code { public static void main(String[] args) { List<String> names = Arrays.asList("Paul", "Jane", "Sam", "Michaela"); // Way to sort pri 阅读全文
posted @ 2020-12-30 03:32 Zhentiw 阅读(97) 评论(0) 推荐(0)
摘要: <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 阅读(106) 评论(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 阅读(122) 评论(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 阅读(84) 评论(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 阅读(82) 评论(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 阅读(83) 评论(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 阅读(221) 评论(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 阅读(169) 评论(0) 推荐(0)
摘要: If you find yourself filling out the same form over and over again, or working through a weird workflow to enable certain features in your app just to 阅读全文
posted @ 2020-12-26 18:28 Zhentiw 阅读(130) 评论(0) 推荐(0)
上一页 1 ··· 158 159 160 161 162 163 164 165 166 ··· 494 下一页