본문 바로가기

비전공자 IT 이야기/Java6

JMS 그리고 비동기 메시지 리스너 현장에서 쓰는 이유. 기존에는 동기식으로 처리를 하고 있었는데, 이 처리를 하는데 시간이 너무 많이 걸림. 예로 들어 버튼을 클릭을 하면, 그 버튼 처리시간이 너무 오래 걸리고, 또한 심지어 더 오래 걸릴경우, 로그인 했던게 타움아웃 까지 되어버리는 불상사가 발생. 그리하여, 비동기 식으로 처리하기로 함. 여기서 잠깐. 비동기 뜻을 알고 가보자. 네이버 국어 사진 : 앞에서 행하여진 사상이나 연산이 완료되었다는 신호를 받고 비로소 특정한 사상이나 연산이 시작되는 방식. 단순히 모든 처리를 비동기 식으로 하는 것이 아니라, DB를 가던, 처리 시간이 오래걸리는 처리만, 비동기 식으로 하고, 나머지는 미리 화면 전환하고, 할꺼 다 하는것. 그리고 처리가 완료되었다는 신호가 오면, 나머지 연산을 시작하게끔. .. 2022. 5. 18.
일하면서 떠오르지 않는 소스 코딩 방법 DTO가 다수 존재.(형태도 다양) table A의 알파값이, 위의 DTO에 존재하는지 전부 확인 한뒤, table A의 베타값으로 교체. 클래스 DTO_A에는 알파, 베타 관련 set,get선언이 된상태. DtoA dtoa = new DtoA(); ArrayList list = new ArrayList(); DTO a = new DTO(); DTO1 a1 = new DTO1(); ... DTO10 a10 = new DTO10(); if(a.getB.contains(dtoa.알파)){ a.setB(dtoa.베타); } ... if(a.getB10.contains(dtoa.알파)){ a.setB10(dtoa.베타); } ... if(a10.getB10.contains(dtoa.알파)){ a10.setB10.. 2022. 5. 10.
Spring Boot + Thymeleaf + Layout 적용 안되는 현상 2022 thymeleaf 관련 depedency 추가 시 종속성을 없앴더니 해결! 아.. 문제 해결 하는데 몇 시간이나 날린 건지.. ㅜㅜ 흐엉.. 수정 이전 implementation 'org.springframework.boot:spring-boot-starter-thymeleaf:2.6.7' implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:3.1.0' 해결! implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect' 그 외 원인이 될 수 있는 부분 참고할.. 2022. 5. 6.
Spring Boot + Thymeleaf + Bootstrap 5 + gradle build.gradle // 타임리프 implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect' /* 레이아웃 */ // 타임리프 - Bootstrap implementation 'org.webjars:webjars-locator:0.45' implementation 'org.webjars:bootstrap:5.1.3' Spring Boot + Thymeleaf implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' Thymeleaf Layout .. 2022. 5. 3.