ã¯ããã« ããã«ã¡ã¯ãæ°å2å¹´ç®ã®å²¡å´ã§ãã ã¨ããµã¤ããã¼ã«ãã£ã³ã°ã¹ Advent Calendar 2024ã®20æ¥ç®ãæ å½ãã¾ãã ä»ã®è¨äºã¯ãã¡ãããï¼ qiita.com ä»åã¯Spring Bootã«ããã¦ãControllerã§å ¨ã¦ã®ãªã¯ã¨ã¹ããåãåãæ¹æ³ãç´¹ä»ãã¾ãã ç°å¢ gradâ¦
ã¯ããã« ããã«ã¡ã¯ãæ°å2å¹´ç®ã®å²¡å´ã§ãã ã¾ãã¯ã次ã®ç»åãè¦ã¦ãã ããã ãããã証ææ¸ã®è©³ç´°ãã¯ãªãã¯ããã¨ã証ææ¸ã«å«ã¾ãã¦ãã¾ããã¨åºã¦ãã¾ãã ãã®å ´åãSSL証ææ¸ãçºè¡ããå¿ è¦ãããã¾ãã ä»åã¯AWSä¸ã®ç°å¢ã§åãã¦ãããµã¼ãã¹ãªâ¦
ã¯ããã« ããã«ã¡ã¯ãæ°å2å¹´ç®ã®å²¡å´ã§ããã¨ããµã¤ãHDã¢ããã³ãã«ã¬ã³ãã¼2024ã®5æ¥ç®ãæ å½ãã¾ãã ä»ã¾ã§ã®è¨äºã¯ãã¡ããã覧ãã ããã qiita.com ãã¦ãä»åã¯ãSpringBoot + Thymeleafã§ãJavaScriptã«å¤æ°ãåãè¾¼ãæ¹æ³ãç´¹ä»ãã¾ãã ç°å¢ Jaâ¦
ã¯ããã« ããã«ã¡ã¯ãæ°å2å¹´ç®ã®å²¡å´ã§ãã Interceptorã使ç¨ããã¨ãã³ã³ããã¼ã©ã¼ã§å¦çãå®è¡ããåå¾ã«å ±éã®å¦çãè¡ããã¨ãã§ãã¾ããä»åã¯ãSpring Bootã§Interceptorã使ãæ¹æ³ããç´¹ä»ãã¾ãã ç°å¢ Java openjdk version "21.0.2" 2024-01-1â¦
ã¯ããã« æ°å2å¹´ç®ã®å²¡å´ã§ããæè¿ãembulkã§BigQueryãããã¼ã¿ãã¼ã¹ã«ãã¼ã¿ã移è¡ãã¾ããããã®æã®ãã¨ãåå¿é²ã¨ãã¦è¨äºã«ãã¾ãã ãã¼ã¿ç§»è¡ãè¡ã£ãçç± ä»ã¾ã§ã¯ãéå»ã®ãã¼ã¿ãGoogleãæä¾ãã¦ããUAããè¦ã¦ãåæã§ãã¾ãããããããUAâ¦
ã¯ããã« æ°å2å¹´ç®ã®å²¡å´ã§ããä»åã¯ãAWS Copilot CLIã§ç°å¢ä½ææã«ä½ããããã¼ã«ã«å¯¾ãããããã¤ç¨ã®ãã¼ã«ãä¿¡é ¼ããªã·ã¼ã«è¿½å ããæ¹æ³ãç´¹ä»ãã¾ãã åé¡ç¹ Github Actionsã§AWSä¸ã®ãµã¼ãã¹ã«ãããã¤ããæãGithub Actionsã®ãããã¤ç¨ã®ãã¼â¦
ã¯ããã« ããã«ã¡ã¯ãæ°å2å¹´ç®ã®å²¡å´ã§ããä»åã¯ãGoogleã®OAuth2.0ã§åãåã£ããã¼ã¯ã³ãåãæ¶ãæ¹æ³ãç´¹ä»ãã¾ãã ç°å¢ Java openjdk version "21.0.2" 2024-01-16 LTS OpenJDK Runtime Environment Corretto-21.0.2.13.1 (build 21.0.2+13-LTS) Opeâ¦
ã¯ããã« ããã«ã¡ã¯ãæ°å2å¹´ç®ã®å²¡å´ã§ããä»åã¯ãModelMapperã®ä½¿ãæ¹ã«ã¤ãã¦ç´¹ä»ãã¾ãã ã¯ããã« ç°å¢ ModelMapperã«ã¤ã㦠æºå å®è£ è£è¶³ æå¾ã« ç°å¢ Spring boot . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| â¦
ã¯ããã« ããã«ã¡ã¯ãæ°å2å¹´ç®ã®å²¡å´ã§ããä»åã¯ãThymeleafã§ãã¤ãã¼ãªã³ã¯ãå®è£ ããæ¹æ³ãç´¹ä»ãã¾ãã ç°å¢ Thymeleaf 3.3.0 åæ 以ä¸ã®ãããªãªãã¸ã§ã¯ããåå¨ãããã¨ãä»®å®ãã¾ãã @Data public class Test { private Long id; private Strinâ¦
ã¯ããã« ããã«ã¡ã¯ãæ°å2å¹´ç®ã®å²¡å´ã§ããä»åã¯ãJavaã§URIãä½ãæ¹æ³ã«ã¤ãã¦ç´¹ä»ãã¾ãã åæ Java openjdk version "21.0.2" 2024-01-16 LTS OpenJDK Runtime Environment Corretto-21.0.2.13.1 (build 21.0.2+13-LTS) OpenJDK 64-Bit Server VM Corâ¦
ã¯ããã« ããã«ã¡ã¯ãæ°å2å¹´ç®ã®å²¡å´ã§ããä»åã¯ãGitHub Actionsã§ãã«ãªã¯ã¨ã¹ãããã¼ã¸ãããæãèªåçã«Gitã¿ã°ãã¤ããæ¹æ³ãç´¹ä»ãã¾ãã ã¾ãããã®è¨äºã¯GitHub Actionsã®ãã¨ããã¾ãåãããªãåå¿è åãã®è¨äºã«ãªã£ã¦ããã¾ãã ã¯ããã« â¦
ã¯ããã« ããã«ã¡ã¯ãæ°å1å¹´ç®ã®å²¡å´ã§ãããã«ã¹ãã§ãã¯ã¯ããµã¼ãã¹ã®å¦çãæ£å¸¸ã«å®è¡ã§ãããã©ããã®ç¢ºèªãã§ãã¾ãã ä»åã¯ãSpring Bootã§ãã«ã¹ãã§ãã¯ãè¡ãæ¹æ³ãç´¹ä»ãã¾ãã ã¯ããã« ç°å¢ Spring Bootã§ãã«ã¹ãã§ãã¯ãè¡ã ãã¼ã«ã«ã§ã®â¦
ã¯ããã« ããã«ã¡ã¯ãæ°å1å¹´ç®ã®å²¡å´ã§ããJava19ã§ãã¬ãã¥ã¼æ©è½ã¨ãã¦æä¾ããã¦ãããã¼ãã£ã«ã¹ã¬ããããJava21ã§æ£å¼æ©è½ã¨ãã¦æä¾ããã¾ãããä»åã¯ããã®ãã¼ãã£ã«ã¹ã¬ãããSpringBootã«å°å ¥ããæ¹æ³ãç´¹ä»ãã¾ãã ãã¼ãã£ã«ã¹ã¬ããã«ã¤ãâ¦
ã¯ããã« ããã«ã¡ã¯ãæ°å1å¹´ç®ã®å²¡å´ã§ããã¨ããµã¤ããã¼ã«ãã£ã³ã°ã¹ Advent Calendar 2023ã®25æ¥ç®ãæ å½ãã¾ãã æè¿ãè¨äºã«å¯¾ããç»åURLã®å¤æå¦çãå®è£ ãã¾ããããã®å®è£ ãã©ãã§ãããã§å¯èªæ§ãç°ãªã£ãã®ã§ãåå¿é²ã¨ãã¦è¨äºã«æ®ãã¾ãã â¦
ã¯ããã« ããã«ã¡ã¯ãæ°å1å¹´ç®ã®å²¡å´ã§ããã¨ããµã¤ããã¼ã«ãã£ã³ã°ã¹ Advent Calendar 2023ã®21æ¥ç®ãæ å½ãã¾ãã ãããããã°ä»ã®è¨äºãã©ããï¼ qiita.com æè¿ã®æ¥åã§ã¯Enumã使ã£ã¦å®è£ ããã¾ããããªã®ã§ãä»æ¥ã¯æ¹ãã¦Javaã®Enumã«ã¤ãã¦ç´¹ä»ãâ¦
ã¯ããã« ããã«ã¡ã¯ãæ°å1å¹´ç®ã®å²¡å´ã§ããã¨ããµã¤ããã¼ã«ãã£ã³ã°ã¹ Advent Calendar 2023ã®14æ¥ç®ãæ å½ãã¾ãã ä»åã¯ãSpring Bootã§ä½¿ããã¨ãã§ãããã£ãã·ã¥ã®ã¢ããã¼ã·ã§ã³ã®æ©è½ãç´¹ä»ãã¦ããããã¨æãã¾ãã ã¯ããã« ç°å¢ è¨å® ã©ã®ããâ¦
ã¯ããã« ããã«ã¡ã¯ãæ°å1å¹´ç®ã®å²¡å´ã§ããã¨ããµã¤ããã¼ã«ãã£ã³ã°ã¹ Advent Calendar 2023ã®7æ¥ç®ãæ å½ãã¾ãã ä»åã¯Javaã«ããã¦ãæ£è¦è¡¨ç¾ã§æå®ãããã¿ã¼ã³ã«ã対象ã®æååãããããããã©ãããå¤å®ããæ¹æ³ãç´¹ä»ãã¾ãã ã¯ããã« Stringã¯â¦
ã¯ããã« ããã«ã¡ã¯ãæ°å1å¹´ç®ã®å²¡å´ã§ããã¨ããµã¤ããã¼ã«ãã£ã³ã°ã¹ Advent Calendar 2023ã®4æ¥ç®ãæ å½ãã¾ãã ä»åã¯GitHub Actionsã使ã£ã¦ãAmazon ECSã«ã¢ããªã±ã¼ã·ã§ã³ããããã¤ããæã«ãèªåçã«CSSãã¡ã¤ã«ãS3ã«ã¢ãããã¼ãããå®è£ ãè¡â¦
ã¯ããã« ããã«ã¡ã¯ãæ°å1å¹´ç®ã®å²¡å´ã§ããã¨ããµã¤ããã¼ã«ãã£ã³ã°ã¹ 2023 advent calendar 1æ¥ç®ãæ å½ããã¦ããã ãã¾ãã qiita.com BEAR.Saturdayã§ã®éçºã§è¦æ¦ãã¾ããã ä»åã®åå¿é²ã§ã¯ãBEAR.Saturdayã§ç»é¢ãä½ãããã«å¿ è¦ãªä¸ã¤ã®ã³ã³ãã¼â¦
ã¯ããã« ããã«ã¡ã¯ãæ°å1å¹´ç®ã®å²¡å´ã§ãã ä»åãåãã¦å é¨ç¨ã®APIã®ããã®ç°å¢ãä½æãã¾ããããã®æã«å¿ è¦ã ã£ãç¥èãåãããã«å§ããã®ã§ããã®åå¿é²ã¨ãã¦è¨äºã«ã¾ã¨ãã¾ããåãã¦AWSã§ç°å¢ãä½ããï¼ã¨ãã人ããã¾ãä½ããåãã¦è¦ãã°ããã®â¦
ã¯ããã« ããã«ã¡ã¯ãæ°å1å¹´ç®ã®å²¡å´ã§ãã ä»åã¯ãã¼ãã«å®ç¾©ãããæã«ã使ãã¨ä¾¿å©ãããããªãMermaidã®ç´¹ä»ããã¦ããã¾ãã ã¯ããã« Mermaidã¨ã¯ 使ãæ¹ VSCode IntelliJ IDEA Notion GitHub Mermaidã®è¨æ³ ãã¼ãã«å®ç¾© ãªã¬ã¼ã·ã§ã³å®ç¾© æå¾ã« â¦
ã¯ããã« ããã«ã¡ã¯ãæ°å1å¹´ç®ã®å²¡å´ã§ãã MySQLã§è¤åindexãè²¼ãããåä½ã®indexãè²¼ãã®ãæ¥åã§æ¤è¨ãã¾ããããã®æã¯æ®æ®µç¢ºèªãã¦ãããã¨ä»¥å¤ã«ãkey_lenã確èªããå¿ è¦ããã£ãã®ã§ããã®åå¿é²ã¨ãã¦ç´¹ä»ãã¾ããã¾ããä»åã®è¨äºã¯ãåå¦è åãâ¦
ã¯ããã« ã¨ããµã¤ãã§å å®è ã¤ã³ã¿ã¼ã³ããã¦ãã岡å´ã§ãã ä»æ¥ã¯ISO 8601ã®æ¥ä»ã®è¨ç®ãèããã¨ãã«ããã£ãã®ã§ããã®æã«å¦ãã ãã¨ã«ã¤ãã¦ã¾ã¨ãã¦ããã¾ãã ISO 8601ã¨ã¯ ISO 8601ã¨ã¯ãæ¥ä»ã¨æå»ã«ã¤ãã¦ã®ISO(ã¹ã¤ã¹ã®ã¸ã§ãã¼ãã«æ¬é¨ãããâ¦
ã¯ããã« ã¨ããµã¤ãã§å å®è ã¤ã³ã¿ã¼ã³ããã¦ãã岡å´ã§ãã ååãMySQLã§å ¨ææ¤ç´¢ãããæ¹æ³ãç´¹ä»ãã¾ãããããããããã§ã¯ï¼æåã§æå®ããã¨ãå ¨ææ¤ç´¢ãããã¨ãã§ããªãåé¡ãããã¾ããã ãã£ã¦ãMySQLã®å ¨ææ¤ç´¢ã§ï¼æåã§ãæ¤ç´¢ã§ããããã«ãâ¦
ã¯ããã« ã¨ããµã¤ãã§å å®è ã¤ã³ã¿ã¼ã³ããã¦ãã岡å´ã§ãã ä»åã¯æ¥åã§å ¨ææ¤ç´¢ã試ãã¦ã¿ãã®ã§ãããã§å¦ãã 話ãããã¦ããã ãã¾ãã çµç·¯ ä»åããããã£ããã¨ã¯ãé¨åä¸è´ã§åå¾ãããã¨ã§ããã ä¾ãä¸è¨ã«è¨ãã¾ãã ãã¼ãã«å®ç¾©ã®ä¾ã¨ãã¦ãâ¦
åãã« ã¨ããµã¤ãæ ªå¼ä¼ç¤¾ã§ã¨ã³ã¸ãã¢ããã¦ãã岡å´ã§ãã ä»åã¯ãJavaã§æååçµåã®è©±ããã¦ããã¾ãã æååçµå æååçµåãè¡ãå ´åãä»ã¾ã§ã¯ãã®ããã«ãã£ã¦ãã¾ããã public static void main(String[] args) { Integer hour = 12; Integer â¦
ã¯ããã« ã¯ããã¾ãã¦ãã¨ããµã¤ãã§ã¤ã³ã¿ã¼ã³ãããã¦ããã ãã¦ãã岡ï¨ã§ãã ã¢ããã³ãã«ã¬ã³ãã¼ã®22æ¥ç®ãæ å½ããã¦ããã ãã¦ãã¾ãã ä»æ¥ã¯Jacksonã®ObjectMapperãã¨ã¦ãã¨ã¦ã便å©ã ã£ã話ãããã¦ããã ãã¾ãã Object Mapperã¨ã¯ ããã§ã¯â¦
ã¯ããã« ããã«ã¡ã¯ãã¨ããµã¤ãæ ªå¼ä¼ç¤¾ã§é·æã¤ã³ã¿ã¼ã³ãããã¦ããã ãã¦ãã岡å´ã§ãã ä»åã¯ç§ãå¦ãã ãã£ãã·ã¥ã«ã¤ãã¦ã®è¨äºãæ¸ããã¦ããã ãã¾ãã ãããåãã£ã¦ãããã ãï¼ãã¨ããã¨ã³ã¸ãã¢ã®çããåãã§ã¯ãªããSpring Bootã§ãã£ãâ¦