profile
No pleasure, No gain

Virtual Env & Docker

WHY SHOULD I use venv & docker ?A virtualenv only encapsulates Python dependencies. A Docker container encapsulates an entire OS.With a Python virtua

2021년 4월 4일
·
0개의 댓글
·

Is Spring @Configuration mandatory?

스프링에서, 클래스 단위에 @Configuration을 생략하고 메소드에 @Bean 어노테이션을 붙여주어도 작동할까?Spring Security를 설정해주는 SecurityConfig 클래스를 작성하고, @Configuration 어노테이션을 생략한 채로, 포스트맨을

2021년 1월 24일
·
0개의 댓글
·

이미지 클릭 시 display or download

출처: https://stackoverflow.com/questions/45767895/opening-a-file-in-browser-in-a-new-tab-rather-than-downloading-itanchor 태그 혹은 form 태그에 아래와 같이tar

2021년 1월 20일
·
0개의 댓글
·

MyBatis Mapper

@Mapperpublic interface UserMapper { @Insert("INSERT INTO USERS (username, salt, password, firstname, lastname) " + "VALUES( @Options(us

2021년 1월 10일
·
0개의 댓글
·

@ModelAttribute

getHomePage 메소드를 보자. MessageForm 커맨드 객체를 넘겨줄 때, 나는 이 때까지 변수명인 newMessage 라는 이름으로 템플릿에 넘겨지는 줄 알았다. 하지만, 스프링은 @ModelAttribute("name") 설정이 되어 있지 않으면, 기본적

2021년 1월 8일
·
0개의 댓글
·

About Web (Application) Server

Web Server(very simple web server compared with current web application server for dealing with Http request)\-> Here enter the Java Application Serve

2021년 1월 7일
·
0개의 댓글
·

HttpServletRequest, HttpServletResponse

강의 출처-ed 부스트코스 백엔드 강좌 강경미 강사님https://www.boostcourse.org/web326/lecture/258511이미지 자료가 정리가 워낙 잘 되어 있어서 참조해보았다.브라우저(클라이언트)가 요청을 보내고, 이를 WAS가 어떻게 받아

2021년 1월 4일
·
0개의 댓글
·

서블릿의 라이프 사이클

위와 같이 서블릿의 라이프 사이클을 확인해 볼 수 있도록, init destory service 함수를 만들고,서블릿 클래스를 실행 시, 최초로 생성이 되고, init이 호출된다. 그리고 페이지를 새로고침하면 Servlet 객체는 다시 생성되고 init이 호출되지 않고

2021년 1월 4일
·
0개의 댓글
·

eclipse로 웹 어플리케이션 프로젝트 만들기

이클립스 상단 오른쪽 위에 있는 Java perspective 혹은 Jave EE perspective 중 하나를 선택(웹 어플리케이션 생성의 경우, Java EE가 좀 더 편한 환경을 구성하고 있음) New -> Dynamic Web Project -> Target

2021년 1월 4일
·
0개의 댓글
·

WAS와 관련하여 생각해볼 것들

출처: 네이버 부스트코스 backend 강좌- 강경미 강사님tomcat설정파일을 수정함으로써 실행되는 포트를 바꿀 수 있다.컴퓨터를 구분하기 위해서 사용되는 것은 도메인이나 ip이고, 컴퓨터에 설치되어 있는 여러개의 소프트웨어 서버를 구분하기 위해 사용되는 값이 포트(

2021년 1월 3일
·
0개의 댓글
·

mysql 8.x 버전에서 legacy encryption 방식으로 설치하지 않았을때

첫번째 오류. Unable to load authentication plugin 'caching_sha2_password'.MySQL 8.x는 인증 플러그인으로 caching_sha2_password 를 default로 사용.MySQL 5.x는 mysql_native_

2021년 1월 2일
·
0개의 댓글
·

스프링 게시판 첨부파일 수정 로직에 대한 일기

Spring data Jpa가 워낙 편리하기 때문에 게시판 CRUD를 만드는 것은 일도 아니었으나, 첨부파일이 들어가는 순간 얘기가 조금 달라지는 듯했다. AWS S3 사용을 해본지 꽤 오래되었기 때문에 스토리지 사용 경험해도 해볼겸, S3에 저장하고 수정, 삭제하는

2021년 1월 1일
·
0개의 댓글
·

how to ignore sql file execution on startup

Disable the database initialization at start up usingspring.datasource.initialize=falseTurning off Spring Boot's fail fast behavior usingspring.dataso

2020년 12월 31일
·
0개의 댓글
·

Spring MVC Form Validation이 안된다..

source code: https://spring.io/guides/gs/validating-form-input/다음과 같이 hibernate-validator dependency를 따로 추가해주니 해결되었다

2020년 12월 24일
·
0개의 댓글
·

ddl auto strategies

drop table and createcreate table at the start of the app and drop table at the end of app alter table if there's changevalidate if entity and table m

2020년 12월 21일
·
0개의 댓글
·

Flush

강의 출처- 인프런 김영한 강사님https://www.inflearn.com/course/ORM-JPA-Basic Synchronize datas which happend in the persistence context with the ones in datab

2020년 12월 20일
·
0개의 댓글
·

Persistence Context

Example code (Ensurance of Entity's Equality)with scope of the same transactionthis is possible due to the persistence context.configure the query siz

2020년 12월 20일
·
0개의 댓글
·

JAXB Class Not Found Exception

JAXB API는 JAVA EE API로 간주되며, Java 11인 나의 경우에는 JDK에서 완전히 삭제되었음. 따라서 위와 같이 라이브러리를 추가해 줌으로써 해결 가능.

2020년 12월 20일
·
0개의 댓글
·

Jpa tutorial

강의 출처- 인프런 김영한 강사님https://www.inflearn.com/course/ORM-JPA-BasicThis is for taking notes on what I learned today. Please let me know if there's an

2020년 12월 20일
·
0개의 댓글
·

JPA, Spring-data-jpa, AOP tutorial

강의 출처-김영한 강사님https://www.inflearn.com/course/%EC%8A%A4%ED%94%84%EB%A7%81-%EC%9E%85%EB%AC%B8-%EC%8A%A4%ED%94%84%EB%A7%81%EB%B6%80%ED%8A%B8using En

2020년 12월 14일
·
0개의 댓글
·