전체 글 (291) 썸네일형 리스트형 [HTML mdn web docs] table 의 th에 id 쓰는 법 intellij 에서 테이블만 만들면 자꾸 th에 id나 scope attribute를 넣어라고 한다 왜 일까... 🤔 Table에서 id와 headers 속성을 이용하여 연결을 만든다 Purchase Location Date Evaluation Cost (€) Haircut Hairdresser 12/09 Great idea 30 … th 에 id를 추가해주고 td 는 headers 요소를 추가하고 공백으로 구분하는 것이다 제대로 작동하려면 테이블에 열과 행 머리글이 모두 필요하다. https://mdn.github.io/learning-area/html/tables/assessment-finished/planets-data.html Planets data Dwarf planets Pluto 0.014.. [Generics] 제네릭 알아보기 https://inpa.tistory.com/entry/JAVA-%E2%98%95-%EC%A0%9C%EB%84%A4%EB%A6%ADGenerics-%EA%B0%9C%EB%85%90-%EB%AC%B8%EB%B2%95-%EC%A0%95%EB%B3%B5%ED%95%98%EA%B8%B0 ☕ 자바 제네릭(Generics) 개념 & 문법 정복하기 제네릭 (Generics) 이란 자바에서 제네릭(Generics)은 클래스 내부에서 사용할 데이터 타입을 외부에서 지정하는 기법을 의미한다. 객체별로 다른 타입의 자료가 저장될 수 있도록 한다. 자바에서 배 inpa.tistory.com 제네릭 : 클래스 내부에서 사용할 데이터타입을 외부에서 지정하는 기법이다. 각 객체별로 다른 타입의 자료가 저장될 수 있도록 해준다. A.. 언젠가 JPA로 돌아가면 쓸 것 mysql SELECT m FROM table m ORDER BY column DESC LIMIT 10 jpa List findTop10ByOrderByViewCountDesc(); 오홍 [비교] Object.equals() 와 equals() equals() 를 사용할 때 비교하는 예시가 null 일 경우 에러가 난다. NullPoitException public class Equals { public static void main(String[] args) { String a = null; String b = "b"; if(a != null & aa.equals(b)) { System.out.println("a equal to b"); } } } 굳이 널 여부까지 체크해줘야된다는 말임 public class Equals { public static void main(String[] args) { String a = null; String b = null; String c = "apple"; String d = "apple"; System.o.. [단일요소배열] Collections.singletonList 와 Arrays.asList https://prohannah.tistory.com/85 Java 단일 요소의 배열 Collections.singletonList vs Arrays.asList 나의 개발 친구 intelliJ가 친절하게 알려주었다. 단일 요소의 배열에는 asList() 대신 singletonList()를 사용해달라고. intelliJ가 괘 이러한 가이드를 주었는지 IntelliJ의 설명을 읽어 보자. [요약] 메모리 prohannah.tistory.com 메모리 절약을 위해서 empty인지 아닌지를 체크하기 위해서는 Collections.singletonList 를 사용하는게 좋다. Collections.singletonList() 변경여부 : immutable (불변) 사이즈 : size가 1로 고정됨(지정된 단일 .. [File Extensions] 업로드 파일 통제 통제할 필요가 있는 파일 모음 Extension Format BAT Batch File BIN Binary Executable CMD Command Script COM Command File CPL Control Panel Extension EXE Executable GADGET Windows Gadget INF1 Setup Information File INS Internet Communication Settings INX InstallShield Compiled Script ISU InstallShield Uninstaller Script JOB Windows Task Scheduler Job File JSE JScript Encoded File LNK File Shortcut MSC Microsof.. [Task Execution and Scheduling] @Scheduled annotation @Scheduled 애노테이션을 이용하면 아주 쉽게 메소드 추가가 가능하다 @EnableScheduling // 스케줄링 @SpringBootApplication public class AnythingTestApplication { ... } 다음 메서드는 고정된 지연 시간을 두고 5초(5000밀리초)마다 호출됩니다. 즉, 기간은 각 이전 호출의 완료 시간부터 측정된다. @Scheduled(fixedDelay = 5000) public void doSomething() { // something that should run periodically } https://velog.io/@kenux/Spring-Boot-Scheduled-%EC%9D%B4%EC%9A%A9%ED%95%9C-%EA%B0%84%EB%.. [Task Execution and Scheduling] TaskExecutor 힘차게 또 공부를 😂 https://docs.spring.io/spring-framework/reference/integration/scheduling.html Task Execution and Scheduling :: Spring Framework All Spring cron expressions have to conform to the same format, whether you are using them in @Scheduled annotations, task:scheduled-tasks elements, or someplace else. A well-formed cron expression, such as * * * * * *, consists of six space-separated time d.. 이전 1 2 3 4 ··· 37 다음