指令:
mvn spring-boot:build-image
image 名稱參數:
-Dspring-boot.build-image.imageName=myrepo/myimage
Reference
Build a Docker image using Maven and Spring Boot
Victor Liang changed 2 years agoView mode Like Bookmark
Host By Android Studio Emulator With RTSP Security Server
terminal 1
emulator -avd [device_name]
emulator power on
wait till Boot completed
open RTSP Security Server App
terminal 2
Victor Liang changed 2 years agoView mode Like Bookmark
排序ROW_NUMBER() = INDEX ( 1 2 3 4 5 6 )
ROW_NUMBER() OVER ( ORDER BY number ) as 'index'
RANK() = 非連續排名 ( 重複名次時會跳過下一名 ex: 1 1 3 4 4 6 )
RANK() OVER ( ORDER BY score ) as 'rank'
DENSE_RANK() = 連續重複排名 ( ex: 1 1 2 3 4 5 )
DENSE_RANK() OVER ( ORDER BY score ) as 'dense_rank'
Victor Liang changed 2 years agoView mode Like Bookmark
Java Backend ( Spring )
Request Method
RequestMapping("/asset")
此種寫法的情境下,不論是透過 Get 或是 Post 送出路徑為 "/asset" 的請求,都會對應到同樣的 Controller。
Get Method 以及 Post Method 並沒有硬性規定必須依功能區分使用,如 Get 只能讀取、 Post 只能新增,兩者差別只在於傳遞資料的方式不同,也因為各自的傳遞資料特性,有較適合的使用時機。
Get 使用直接加在請求路徑(網址)的方式傳遞資料
Request Param - 請求參數
Victor Liang changed 3 years agoView mode Like Bookmark
How to deploy
flowchart TD
A[Deploy to production] --> B{Is it Friday?};
B -- YES --> C[Do not display!];
B -- NO --> D[Run deploy.sh to deploy];
D ----> F[Enjoy your weekend!] -->E;
C ----> E[Enjoy your weekend!] -->F[Welcome!];
Victor Liang changed 3 years agoView mode Like Bookmark