스프링부트 기준application.yml 파일 하나를 두고 운영, 개발, 로컬 환경에서 실행하는 방법 yml 파일 설정방법yml 파일을 열고 --- 전에는 공통으로 사용할 설정을 넣어주고그 아래에는 포트 db url 등 달라지는 값들을 넣어준다 그리고 최초 --- 전에 profiles active 에 기본적으로 (옵션 안넣으면) 실행될 이름을 지정해줌아래의 각 설정들에 spring - config - activate - on - profiles 에 원하는 이름을 지정해준다. 예시spring: profiles: active: local application: name: keart_project datasource: hikari: ..
전체 글
대표적인 라벨링 툴 labelImg (https://github.com/HumanSignal/labelImg) GitHub - HumanSignal/labelImg: LabelImg is now part of the Label Studio community. The popular image annotation tool created byLabelImg is now part of the Label Studio community. The popular image annotation tool created by Tzutalin is no longer actively being developed, but you can check out Label Studio, the open source ...github.c..
스프링 파일다운로드- ResponseEntity 방식으로 다운로드 구현중- No converter for [class org.springframework.core.io.FileSystemResource] with preset Content-Type 'application/octet-stream' 오류발생 try (ZipOutputStream zos = new ZipOutputStream(Files.newOutputStream(tempZipFile, StandardOpenOption.CREATE))) { Files.walk(tempDir) .filter(Files::isRegularFile) .forEach(file -> { try {..
전자정부에서 context-transactional.xml 파일이 있어이를 통해 transaction 설정했으나 @Transactional 안붙여도 어떤 메소드든Exception 만 발생하면 트랜잭션이 발생하는 문제 발생특정 메소드에서는 예외처리 발생시 DB 에 오류 발생 여부를 업데이트 해야하는 상황이었음이거 해결한 방법 정리1. 전자정부 트랜잭션 기본설정 (모든 예외에 대해)기본적으로 생성되는 아래 파일에 expression 경로만 본인 프로젝트로 바꿔주고 이름 맞춰주면 끝 2. 특정 메소드에 대해서만 예외처리 트랜잭션 해제하기and !execution 으로 원하는 메..
상황 및 원인@RestController / @ResponseBody 붙였는데요청에 대한 응답이 모두 404 뜨고 json 값이 넘어가지 않아서 찾아봄스프링 4 이상부터는 따라서 자동으로 JacksonHttpMessageConverter, Jackson2HttpMessageConverter, GsonHttpMessageConverter를 설정해주지만그 이하버전의 경우 별도로 설정을 해줘야 사용이 가능해결방법 위와 같은 dispatcher-servlet.xml 파일에서 property 에 아래 내용 추가하면 댐 text/html;c..
__git 레포지토리 fork 하기 __ upstream? origin? main? 종류 설__ 오픈소스 프로젝트 기여회사 프로젝트 메인 레포지토리 작업등 여러모로 많이 사용됨가져오고 설정하기1. 원하는 레포가서 Fork 하기2. 이름 / 설명 등 정하고 브랜치 설정하기기존거 그대로 써도 댐(보통 그럼)아래 체크박스는 가져오려는 레포지토리의 default branch (보통 main) 만 가져올거냐, 아니면 다른 branch 들도 갖다 쓸거냐 물어보는거임보통 체크해도 무방함 (개발용 또는 실제 운용되는 branch 가 default 일거기 떄문)3. clone 하기가져왔으면 forked from ~ 이라고 뜨고 내 레포로 생김똑같이 주소 복사해서 clone 해보자새로운 폴더 안만들고 현재 디렉토리에서 하..