기본 콘텐츠로 건너뛰기

글

[Docker] 자주 사용하는 커멘드

docker-compose up : Builds, (re)creates, starts, and attaches to containers for a service -d, --detach : Detached Mode, Run container in background. docker rmi <your-image-id> : delete image with id docker images : list docker images docker build --tag <tag-name> .  : build docker image in current directory with tag name docker tag bb38976d03cf yourhubusername/verse_gapminder:firsttry : tag already created image  docker push yourhubusername/verse_gapminder : push image to docker hub repo

[Trouble Shooting] Spring Maven Project에서 갑자기 api endpoint에 404 error가 뜰때 + Dynamic Web Module to x.x Error in Eclipse

Spring Maven Project에서 갑자기 api endpoint에 404 error가 뜰때  Git의  커밋로그를 분석하여 차이가 발생한 부분을 찾아보았다. 프로젝트의 .classfile에 다음 라인이 누락삭제되어서 발생하였다. <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> 이 라인이 어쩌다가 누락이 된것인지는 확실치 않지만 잘되던 프로젝트가 갑자기 안될때는 커밋로그를 분석하는게 좋은것같다. 또한 Spring Boot를 쓰면 실수할만한 환경설정들이 줄어든다는것도 느낀다. 이클립스에서Dynamic Web Module to x.x” Error in Eclipse 먼저 org.eclipse.wst.common.project.facet.core.xml 파일에 <installed facet="jst.web" version="y.y"/> 부분의 y.y를 x.x로 수정한다. 그리고 x.x 버전에 맞는  tomcat버전을 세팅한다. servlet 버전에 맞는 tomcat 버전은 다음에서 확인한다.( LINK )

[Career Tip] 주니어 개발자 또는 인턴으로 살아남기 위한 팁 요약

 1. 인턴십(또는 신입으로서 일)을 시작하기 전에 팀멤버들을 만나서 소통하라. 자신을 소개하라. 2. 멍청한 질문이라는건 존재하지 않는다, 주저하지 말고 질문하되 그 질문에 답을 해줄수 있는 적절한 사람에게 하라. 3. 질문하기전에 문제에대해서 충분히 고민해보고 해결하려고 노력하라. 4. 스스로 모든 문제를 해결하려고 하지마라. 5. 반드시 코드를 제출하기전에 테스트를 충분히 작성하라. (테스트를 작성하지 않은 코드는 쓸모없다.) 6. 데드라인을 넘겼다고 해서 세상종말인 것은 아니다. 세상종말은 커뮤니케이션을 하지 않을때이다. 항상 내가 하는 일을 설명할 준비가 되어있고, 현재 겪고있는 이슈들을 커뮤니케이션하라. 다른 사람의 생각을 짐작하지 말고 커뮤니케이션 하라.  7. 장기적으로 성장하고 싶으면 , 시니어들의 설명을 귀담아듣고 메모하라.  출처 : Top 6 Tips to survive as a Junior Developer or Intern (from an Amazon SDE Intern)

[SQL] 10.22 학습한 sql 구문

user 조회: select host, user, authentication_string from user; drop user: drop user springstudent@'%' 외부에서 접근 가능하도록 유저 생성: create user springstudent@'%' identified by 'springstudent'; local에서만 접근 가능하도록 유저 생성: create user springstudent@localhost identified by 'springstudent'; spring student에게 moBack 데이터베이스에 대한 모든 권한 부여: grant all privileges on moBack to 'springstudent';