본문 바로가기

인프런23

[UBUNTU] bash 그리고 crontab CLOUD: AWS EC2OS: Ubuntu 22.04.4 LTS  script.sh 작성vi script.sh#!/bin/bash file script.sh확장자를 확인할 수 있다.  💾 script.sh#!/bin/bashmkdir ~/desktop/seoulcd ~/desktop/seoultouch file(1..10)ls -l ~/desktop/seoul > ~/desktop/seoul.log    script.sh 실행bash script.sh    seoul.log 확인   crontab# 매분마다 실행* * * * * echo "Hello Linux" >> ~/desktop/hello.txt * * * * * 분(0-59)시간(0-23)일(1-31)월(1-12)요일(0-7) 스케줄링 기능으.. 2024. 5. 31.
IT 입문자를 위한 전반적인 개념 정리 - 더코딩클럽 IT 입문자를 위한 전반적인 개념 정리더코딩클럽인프런2024.04.30~05.01https://inf.run/E3w9Y   1. 컴퓨터1) 하드웨어IT 세계에서는 컴퓨터를 구성하는 물리적인 장치를 뜻함CPU: 컴퓨터의 핵심적인 구성 물질 (중앙처리장치)시스템을 제어하고, 계산하는 역할을 함 사람의 뇌와 같음데이터를 처리하고 연산하는 능력명령어를 실행하여 컴퓨터를 동작시키는 능력메모리 (기억장치)기억을 하는 공간컴퓨터에서 데이터를 저장할 때, 메모리에 저장됨CPU가 연산한 값들을 저장함프로그램이 실행되는 동안 필요한 정보를 저장함데이저 저장, 메모리 접근, 프로그램 실행 등 다양한 역할을 수행함입출력장치키보드, 마우스, 프린터 2) 소프트웨어눈에 보이지 않는 컴퓨터 프로그램응용 소프트웨어: 사용자의 문제를.. 2024. 5. 1.
[SPRING BOOT] expected single matching bean but found 2 (@repository) os: windows 11 home 강의: 인프런 [스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술] 부분: 섹션 6 : 스프링 DB 접근 기술 (스프링 데이터 JPA) 💡 문제 `MemberServiceIntegrationTest`에서 test 실행 시, test 실패 사실 로그를 꼼꼼하게 안 봤는데, 나중에 보니 로그에 답이 있었다... 에러를 확인한 후, 인프런 해당 강의 커뮤니티에 검색을 해봤다. 해당 글을 참고하여, 해결할 수 있었다. 💡 해결 어떤 분이 남겨주신 해결 방법이었다. `MemoryMemberRepository`에서 @Repository 애너테이션이 문제였다. 이걸 삭제(또는 주석처리 후) 테스트 코드를 실행을 해봤더니! 잘 작동하였다. (굿) Caused .. 2024. 1. 17.
[SPRING] 스프링 부트 - 회원 관리 예제 > 회원 서비스 개발 & 테스트 1. 회원 서비스 개발 회원 서비스는 회원 리포지토리와 도메인을 활용해서 실제 비즈니스 로직을 작성함 💾 service/MemberService.java package hello.hellospring.service; import hello.hellospring.domain.Member; import hello.hellospring.repository.MemberRepository; import hello.hellospring.repository.MemoryMemberRepository; import java.util.List; import java.util.Optional; public class MemberService { private final MemberRepository memberReposit.. 2023. 9. 2.
[SPRING] 스프링 부트 - 회원 관리 예제 > 회원 리포지토리 테스트 케이스 작성 회원 리포지토리 테스트 케이스 작성 JUnit이라는 프레임워크로 테스트 실행 회원 리포지토리 메모리 구현체 테스트 `src/test/java` 하위 폴더에 생성함 💾 MemoeryMemberRepositoryTest.java package hello.hellospring.repository; import hello.hellospring.domain.Member; import org.junit.jupiter.api.Test; import java.util.List; import static org.assertj.core.api.Assertions.*; class MemoryMemberRepositoryTest { MemberRepository repository = new MemoryMemberReposi.. 2023. 9. 1.
[SPRING] 스프링 부트 - 회원 관리 예제 > 회원 도메인과 리포지토리 만들기 회원 도메인과 리포지토리 만들기 회원 객체 💾 domain/Member.java package hello.hellospring.domain; public class Member { private Long id; private String name; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } } 리포지토리 💾 repository/MemberRepository.java (인터페이스) package hello.hellospring.reposi.. 2023. 8. 31.