원하는대로

관심분야에 대해 원하는 모든 것을 발행하는 곳

미정 자세히보기

공부 스걱스걱 50

[Docker] Docker + SpringBoot 프로젝트

간단한 스프링 부트 프로젝트를 만든다. 나는 java + gradle로 프로젝트를 하나 생성하고 간단히 record와 restController를 만들어서 화면에 잘 나오는지 확인만 했다. @RestController public class TestController { @GetMapping("/contents") public Contents getContents() { User user = new User("user01", "1234"); return new Contents(1, "test", "test를 해보자", user, LocalDateTime.now(), LocalDateTime.now()); } } public record Contents(int id, String title, String ..

[Docker] Docker 설치 + MariaDB 실행하기

docker가 뭘까...? 한번 사용해보며서 알아가자!!라는 생각으로 일단 발걸음을 떼봤다. 무작정 google 무한 서치 및 따라하기*** ### Mac 설치 사이트 https://docs.docker.com/desktop/install/mac-install/ Install Docker Desktop on Mac Install Docker for Mac to get started. This guide covers system requirements, where to download, and instructions on how to install and update. docs.docker.com ### 또는 homebrew 로 다운로드 brew install docker --cask https://for..

[JAVA] CompletableFuture를 이용한 비동기화

List futures = list().stream() .map(cont -> CompletableFuture .runAsync(() -> [task]) ).collect(Collectors.toList()); CompletableFuture.allOf(futures.toArray(new CompletableFuture[futures.size()])).join(); CompletableFuture.supplyAsync(Supplier): 리턴값이 있는 비동기 작업 CompletableFuture.runAsync(Runnable): 리턴값이 없는 비동기 작업 CompletableFuture.allOf(CompletableFuture...): 여러 작업들을 동시에 실행하고, 모든 작업 결과에 콜백을 실행함 ..

[컴활1급] 컴퓨터활용능력1급 공부후기

필기는 문제 유형이랑 내용 좀 보고 합격 했다. 문제는 실기였다... 2021 시나공 컴퓨터활용능력 실기(기본서)로 공부중 2022.08.07 2022.09.04 2022.09.24 2022.10.19 2022.11.12 -21.01.04 1장 기본작업 ... 다시 -22.06.24 컴활 1급 실기 공부를 시작하기로 했다. 8월 7일 시험으로 신청부터 함 직장 다니면서 공부 안하고 나태해지는 것같아서 올해 11월 필기 만료되는 김에 겸사겸사 결심했다. 필기를 따둬서 실기 안따기 아까운... 아자아자 화이팅! -2022.07.01 셀서식 및 시트보호 조건부서식/중복된 항목 제거 -2022.07.04 자동필터/고급필터 페이지 레이아웃/통합문서보기 -2022.07.05 논리함수, 찾기함수, 텍스트함수, 정보함..

[Spring Security] 스프링 세큐리티 설정(spring boot 없이)

웹 프로젝트를 진행하던 중 관리자페이지를 만들어야 했다. 관리자 페이지는 해당 URL에 접근을 관리자 아니면 아예 할 수 없게 하고싶어 찾던 중 Spring Security라는 프레임워크을 알게되었다. 개발 환경 Spring 5.2.17.RELEASE Spring Security 5.5.2 STS 3.9.17.RELEASE Spring MVC Poroject Spring Security 문서를 보면서 설정했다. https://docs.spring.io/spring-security/site/docs/current/reference/html5/ Spring Security Reference In Spring Security 3.0, the codebase was sub-divided into separate..