2021-01-01ãã1å¹´éã®è¨äºä¸è¦§
Gradle 7.3.2 Gradleã使ã£ã¦ãããããã¯ãã ã¨ãåºæ¬çã«GradleWrapperã使ãã¨æãã¾ãã ããã¸ã§ã¯ãä½ææã«ææ°ã®Gradleã使ããã¨æãã¾ãããGradleã®æ´æ°ã§ãã¾ã«ãã«ãæéç縮ã¨ãããããã§ãæ°æ©è½ä½¿ããªãã¦ãWrapperãæ´æ°ãã¦ããããã¨ãâ¦
Log4j 2ã®ãã¼ã¸ã§ã³ã¢ããã®ãããã 㧠"ãMavenãªãã¸ããªãã®æããã®" ã軽ãæ¸ãã¾ããããããæ©ä¼ãªã®ã§ããå°ãæ¸ãã¦ããã¾ãã ææ°çã¯ä½¿ããï¼ https://twitter.com/irof/status/1469139048954724354 ãããããã¤ã¼ãããã¾ãã¦ã è¦ã¦ãé çªâ¦
Log4j 2ã®ãã¼ã¸ã§ã³ã¢ããã®ãããã ããã®æ´¾çã ç¹åããå 容ãªã®ã§å¥ã¨ã³ããªã«ãã¾ãã 2021-12-13追è¨: ä»æ°ã¥ãããã©Springå ¬å¼ããã°ã®[Log4J2 Vulnerability and Spring Boot](https://spring.io/blog/2021/12/10/log4j2-vulnerability-and-sprinâ¦
ãLog4j 2ã«èå¼±æ§ããããããããã¼ã¸ã§ã³ã¢ãããããæ²»ãããããã æ¬æ¥è©±é¡ã®ãã®ãã¼ãã§è»½ãæ¸ãã¦ããã¾ãã æªå®ã§ãã æªå®å ¬éã®è¨ã訳ãæ´æ°ããå 容ã¯æå¾ã«æ¸ãã¦ã¾ãã大ããªééãã¯ï¼ä»ã®ã¨ãï¼ãªãã®ã§ãããã£ãã 2021-12-20追è¨: 2.17â¦
irof.hateblo.jp ã®å¾ç¶ã¨ã³ããªã 5.1.0ã§ãµã¤ãºã¯æ»ã£ãã§ããï¼å°ãªãã¨ãç§ã使ãç¯å²ã¯ï¼ ä¾åããªã¼ã4.1.2ã®é ã¨ã ãããåãè¦ãç®ã å·¦ã5.1.0ã§å³ã5.0.0ï¼ã®å1/3ãããï¼ã§ãããããã¾ãã¾jarã®æ°ã«ãªãã 4.1.2 -> 5.1.0ã§è¦ãã¨ã»ã¨ãã©å·®ã¯â¦
JUnit 5.8.1 Java 17.0.1 IntelliJ IDEA 2021.2.3 JUnit5ã§ã® @MethodSource ã®ãããã JUnit5ã«ã¯ãã©ã¡ã¿ã©ã¤ãºããã¹ãç¨ã® @ParameterizedTest ããããæ§ã ãªæ¹æ³ã§ãã©ã¡ã¼ã¿ã¼ãä¸ãããã¾ãã ãã®ä¸ã§ããã©ã¡ã¼ã¿ã¼ã«ããç¨åº¦æè»æ§ã欲ããå ´åâ¦
å ¬å¼ããã¥ã¡ã³ãã ããã¨è¨ã£ã¦ãèããªãã«ãã®ã³ã¼ããåãè²¼ããã¦ã¯ãããªããã§ãã ã£ã¦ããç§ã®å¤±æè«ãé²æªè¶£å³ã¯ããã¾ããã Javaã®å ¬å¼ããã¥ã¡ã³ãã¨ãã¦JSLã®APIä»æ§ï¼Javadocã¨å¼ã°ãããããï¼ãããã¾ãã ã³ã¼ãä¾ãè¼ã£ã¦ãã¨ãæåç解â¦
ã·ã¹ãã éçºã®åéã¯æè¡ã®ç§»ãå¤ãããæ©ãï¼ãããä»ã®åéã¨æ¯ã¹ããã¨ãªãã®ã§ãæ©ãæ°ããããã¨è¨ãã ããªã®ã ãã©ï¼ããªãããã®æåãåããä¼æ¥ãªã©ã®æ¡ç¨ãã¦ãããã®ãããºã¯ã¼ãã¨ãªã£ã¦ä¸æ°ã«åºã¾ã£ãããã¾ãããã®æããã®æè¡ã ãã追ã£ã¦â¦
ã·ã¹ãã éçºã§ã¯ããã³ã¼ããåºåããã©ã°ã¨å¼ã°ãããã®ãæ±ãã¾ãã ããããæ··åãã¦ããããææ§ã«ãªã£ã¦ããããããã¨ã¯å¤ãã®ã§ããã®è¾ºããæ´çãã¦ããã¾ãã IDãååãªããããã®æèã«ç»å ´ããã®ã§ãã¤ãã§ã«ã ã³ã¼ã ã³ã¼ãã¯ã¨ã³ã³ã¼ãï¼ãâ¦
irof.hateblo.jp ãã¡ãã§æ¸ãããLocal record classesãã使ãæã®æ³¨æã 触ã£ã¦ãã¨æ¡å¤ä½¿ãæ©ä¼ãåºã¦ããããªæ触ããã£ãã®ã§ãæ°ãã¤ããã¨ãããæ¸ãã¦ããã¾ãã ãã¼ã«ã«ã¯ã©ã¹ ãããããã¼ã«ã«ã¯ã©ã¹ã£ã¦ãã¾ã使ããªããã®ãªãã§åå¨ãèªèããâ¦
record Outer(int a) { record Nest(int b) { } } ãããªãã¨ãããã©ããªããã ããã¨æ°ã«ãªãã¾ãã¦ã record ãåã«ã¯ã©ã¹ã®ã·ã³ã¿ãã¯ã¹ã·ã¥ã¬ã¼ã§ããã°ãNestã¯ã¤ã³ãã¼ã¯ã©ã¹ã«ãªãã®ã§Outerã®ã¤ã³ã¹ã¿ã³ã¹å¤æ°ãããã§ã¯ a ã«ã¢ã¯ã»ã¹ã§ãããã§ããâ¦
IntelliJ IDEA 2021.2.3 å¤ãªãã¸ã§ã¯ããªã¯ã©ã¹ãå¼å¸ãããããã«ä½ã£ã¦ããã¨ããããããåãããï¼ãã¨ãªããã¨ããã¾ã«ããã¾ãã 使ç¨ç®æãå°ãªããã°æä½æ¥ã§ãã¼ã¸ãã¦ãããã®ã§ãããå¤ãã®ç®æã§ä½¿ã£ã¦ããã¯ã©ã¹ã ã¨å¤§å¤ã æååã®ä¸æ¬ç½®æã§â¦
IntelliJ IDEAã§Gradleã®ã¿ã¹ã¯å®è¡ãããã¨ãããæå³ãããã¼ã¸ã§ã³ã§åä½ããªãã¦æå¥è¨ãããå ´åã®è¨å®ãè¤æ°ã®JDKãè¨å®ãã¦ããªãã£ããèµ·ãããªãã¨æãã¾ãã IntelliJ IDEA 2021.2.3 ããMavenã大ä½ä¸ç·ã§ãã è¨å®ããå ´æ Build, Execution, Deâ¦
Java16ã§å°å ¥ãããRecordã§ãããJava17ãªãªã¼ã¹ã«ããããããä¸æ°ã«ä½¿ããã¦ãããã¨ãã¨æãã¾ãã Java17éæã§ããã¼ã¿ã¯ã©ã¹ãæ°ããä½ããªãRecordã使ã£ã¦ã¿ããã¨ãæ¸ãããã§ãããRecordã使ããï¼â¦â¦ã¨ããã§ä½æ°ã«ããªãããªãã ã£ãï¼ããªç§åâ¦
æè¿ãã©ãã©ãã®ãµã¤ããããã¦ã³ãã¼ããã¨ããã¦ãªããªããã¨æã£ãã®ã§ã IntelliJ IDEA Community Edition 2021.2.2 SDKMAN 5.12.4 macOSï¼ã¡ã¤ã³ï¼ SDKMAN!ã«ãä»»ãã IntelliJ IDEAããã¯Add JDK㧠~/.sdkman/candidates/java ã«å ¥ã£ã¦ãã®ã®ä¸»ã ã£ãâ¦
ãã¼ã¿ãã¼ã¹ï¼ã«éããããããæ°¸ç¶åãªã½ã¼ã¹ï¼ã使ç¨ãããã¹ããããã«ãã¦è¡ããã¯ãã¤ã ã£ã¦æ©ã¿ã®ç¨®ã§ãããã®æ©ã¿ã¯ãã©ããã£ãããã¼ã¿ãã¼ã¹ã使ç¨ãããã¹ããè¡ãããããããªããã§ã¯ãªãããªãã¨ããã£ã¦ããã©ãä¸æºã®ãããªãã®ããããã¨â¦
LTSã¨ãªãJava17ãåºã¾ãããçµç¹ãä»å¾ãJavaã使ã£ã¦ããããã®è©¦éç³ã«ãªããã¼ã¸ã§ã³ã ã¨æãã¾ãã å®éã®ã¨ãLTSã ããç¹å¥å®å®ãã¦ãã¨ããããªãã¨ã¯ãªãã¨æããã6ãã¼ã¸ã§ã³ï¼3å¹´ï¼ãã¨ã«LTSã«ããã£ã¦ã®ããã¶ãOracleãããè¨ã£ã¦ã¿ãã ãã§ãâ¦
æé ã®å ¨ã¦ mkdir {ã¦ãã¨ããªãªã¾ã} cd {ã¦ãã¨ããªãªã¾ã} curl -O https://start.spring.io/pom.xml -d dependencies=web -d javaVersion=8 Applicationã¯ã©ã¹ä½æï¼å¾è¿°ï¼ git init git add . heroku create heroku git:remote -a {createã§ä½ããããâ¦
irof.hateblo.jp ã¨ãããã¨ã§ãã 移åã«èªç±åº¦ããªããä¸ä¸ç§»åããã«ã¯ãã¸ã¾ãããªããã§é¢åã ãããã¹ãã¼ã¹ï¼10æ°ã»ã³ãï¼ã許容ããã«ã¯æºãå°ãããã ã¢ãã¿ã¼ã®ä¸ä¸ç§»åã¯ä½¿ãã¥ãããä¸ç«¯ãä¸ç«¯ã§ã¨ã¾ããªãããã«ã¼ã½ã«ãè¡æ¹ä¸æã«ãªãã ãâ¦
Springã®ããã¥ã¡ã³ãã®æ¢ãæ¹ ã§æ¸ããã®ãChromeæ¡å¼µæ©è½ã«ãã¦ã¿ãã使ã人ããããã©ããã¯ç¥ããªãã èªåç¨ãªãã§å¥æ®µå ¬éããå¿ è¦ã¯ãªããã ãã©ãå ¬éãã¦ã¤ã³ã¹ãã¼ã«ãã¦ãã¨å¥ç«¯æ«ã§ãåãã¢ã«ã¦ã³ããªãåæã«å ¥ã£ã¦ããããã§æ¥½ãªãã ãããå¥â¦
ç§ã®ãã ä¸è¡ã§ Single page HTML ã§ãã¼ã¸å æ¤ç´¢ããã Googleã§ã¯ site:https://docs.spring.io/spring-boot/docs/current/ ãæ¤ç´¢æ¡ä»¶ã«å«ããã GitHubã® spring-projects 㧠in this organization ã§æ¤ç´¢ããã è足 該å½ãã¤ã¼ããçºç«¯ã¯bouzuyaããâ¦
ãã³ã°ã¸ã ã¢ãã¿ã¼ã¢ã¼ã (1é¢2軸ã¿ã¤ã) ARM110ã¯ããã³ã°ã¸ã (Kingjim)Amazon æ°ã¥ããããªããã¢ãã¿ã¼å¢ãã¦ãæºè²·ã£ã¦èª¤éåãã¦ããã ãã©ããã£ã±ã¢ãã¿ã¼ã¢ã¼ã 欲ãããªã¼ã£ã¦æã£ã¦ããå±ãã¦ã¾ãããããã£ãã ãã§å±ããªãã¦ä¸æè°ã§ãã irof.hâ¦
Spring Boot 2.5.2 æ¬ç¨¿ã®å¯¾è±¡ 以ä¸ã®ãããªäººã対象ã§ãã SpringBootã使ã£ã¦ã㦠new RestTemplate() ã¨ããæ¸ããï¼è¦ããã¨ãããã SpringBootã使ã£ã¦ã㦠new RestTemplateBuilder() ã¨ããæ¸ããï¼è¦ããã¨ãããã ã¼ãããç¥ã£ã¦ããã©ä»çµã¿ã¨ãâ¦
JSPã¯ãããããæè¡ãªãã ãã©ã使ãæãæ¸ã£ã¦ãã¦æè¿ã¯ãã¾ãè¦ãªããªã£ã¦ãã¾ããã Spring Bootï¼2.5.2ï¼ã®ããã¥ã¡ã³ããè¦ã¦ãã¨ãããªæãã 7.7.1. The âSpring Web MVC Frameworkâ / Template Engines Spring MVC supports a variety of templatiâ¦
å¤ãã¨æã£ãã1å¹´ã®12ã¶æä¸6ã¶æã¯ä½ãããæã£ã¦ããã§ãããæç5å²ããããå¤ããã 4æ å½æ°å¹´éä¿éºæã20ä¸åã 5æ æå¾ç¨ãæå¾ã«å¿ãã¦ã確å®ç³åã®ç· ãåã延æã§ã¡ãã£ã¨ãºã¬ã¦ãã æ¶è²»ç¨ã売ä¸ã®10%ããã°ããã確å®ç³åã®ç· ãåã延æã§ã¡ãâ¦
ç¹ã«åé¡ãªãçãã¦ã¾ããå¥åº·è¨ºæã¨ãç®è¡ã¨ãã®æ°å¤çã«ã¯ãããªã£ã¦ããããã å 訳 åè¨ 1,857kcal * 365æ¥=677,805kcal COMP 440,000kcal Huel 13,600kcal BASE BREAD 4,208kcal 2020-04-01ãã2021-03-31ã®1å¹´åãç´67.5ï¼ ã§ããå¾è¿°ã®ããã«ããããªâ¦
éçºå¹çãä¸ãããã¨ããéçºé度ãä¸ãããã¨è¨ãã®ã¯ããã°ã©ãã®èªç¶ãªæ¬²æ±ã ã¨æãã¾ãã ãããæãã¯ãããã®ã®ã©ãããã°ãããããããªããã®ã§ããã°ãéçºæéã®å 訳ãçºãã¦ã¿ã¾ãããã ãã®å³ã¯ã°ã«ã¼ãã³ã°ãå¾®å¦ã ã£ãããéè¦ãªãã®ãæãâ¦
git add {ãã¡ã¤ã«å} ã§ã¹ãã¼ã¸ã³ã°ãããã¡ã¤ã«åä½ã§é¸ã¹ã¾ãã10ãã¡ã¤ã«å¤æ´ãã¦ã¦ãã®ãã¡3ãã¡ã¤ã«ã ãã³ããããããæã¨ãã«ä¾¿å©ã§ãã git add -p ã§ã¹ãã¼ã¸ã³ã°ããå¤æ´ãè¡ã®å¡åä½ã§é¸ã¹ã¾ããé¢ä¿ãªãã³ã¡ã³ãã足ãã¡ãã£ãã®ã¨ãããã£ãâ¦
ã¨æãã®ã¯ãã¨ã¦ããããã¨ã åç½®ã ããè¡ããããã¹ããå¤çæ¯ãèãã示ããã®ã§ããã°ï¼å°ãªãã¨ããã¹ãã«ãã観測ã§ããè¦éãããªããã°ããã¹ãããããã¨ã¯æããªãã ãããããä½ãããå¤ãã観測å¯è½ãªãã®ã§ã¯ããå¯è½æ§ã¯é«ãï¼ããããprivaâ¦
å°å ¥ SpringBootã§Profileã使ç¨ããããã«ãªãã¨ãä½ãã®profileãæå®ããªãã¨èµ·åããªããªããããªæ§æã«ãªããã¡ã ã¨æãã¾ãã ãã¨ãã° application-local.yml ã application-dev.yml ã application-prod.yml ãªã©ç°å¢ãã¨ã®ãããã¡ã¤ã«ãç¨æããâ¦