上一页 1 ··· 156 157 158 159 160 161 162 163 164 ··· 491 下一页
摘要: 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)
摘要: 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 阅读(122) 评论(0) 推荐(0)
摘要: require.context: https://webpack.js.org/guides/dependency-management/#requirecontext require.context(directory, useSubdirectories = true, regExp = /^\ 阅读全文
posted @ 2020-12-26 18:14 Zhentiw 阅读(170) 评论(0) 推荐(0)
摘要: package com.example.ec.security; import com.example.ec.repo.RoleRepository; import org.springframework.beans.factory.annotation.Autowired; import org. 阅读全文
posted @ 2020-12-26 04:54 Zhentiw 阅读(94) 评论(0) 推荐(0)
摘要: Controller: @RestController @RequestMapping(path = "/ratings") public class RatingController { private static final Logger LOGGER = LoggerFactory.getL 阅读全文
posted @ 2020-12-26 04:33 Zhentiw 阅读(140) 评论(0) 推荐(0)
上一页 1 ··· 156 157 158 159 160 161 162 163 164 ··· 491 下一页