[Mybatis] resultMap collection을 이용한 중첩 데이터 출력하기
·
BackEnd
가끔 사용하게 되는 테크닉인데 항상 같은 삽질을 반복하는 것 같아 히스토리를 남긴다. ResponseDto.java@Data@JsonNaming(value = PropertyNamingStrategies.SnakeCaseStrategy.class)public class WarrantyPackResponseDto { @Data @Builder @AllArgsConstructor @NoArgsConstructor @JsonNaming(value = PropertyNamingStrategies.SnakeCaseStrategy.class) public static class Detail { private Integer warrantyId; private ..
Jenkins gradlew permission denied error
·
BackEnd
해당 branch 를 intelliJ로 실행시킨 후, Terminal 에서 아래의 명령어로 권한을 부여한다. git update-index --add --chmod=+x gradlew sourcetree로 commit, push 하면 jenkins에서 정상 동작하는 것을 확인할 수 있다.
Lombok을 이용한 Bulider Pattern
·
BackEnd
public final class Hero { private final Profession profession; private final String name; private final HairType hairType; private final HairColor hairColor; private final Armor armor; private final Weapon weapon; private Hero(Builder builder) { this.profession = builder.profession; this.name = builder.name; this.hairColor = builder.hairColor; this.hairType = builder.hairType; this.weapon = buil..
Monolithic Architecture 그리고 MSA
·
BackEnd
MSA(Micro service Achitecture)란? 하나의 큰 어플리케이션을 여러개의 작은 어플리케이션으로 나누어서 변경, 조합이 가능하도록 만든 아키텍처 입니다. 그렇다면 마이크로 서비스 아키텍처의 등장배경은 무엇일까요? 왜 MSA가 등장하게 되었을까요? MSA의 등장 배경 MSA의 등장배경을 이해하기 위해서는 기존방식인 Monolithic Architecture에 대해 이해하고 그문제점에 대해 이해해야 합니다. 모놀리틱 아키텍처와 마이크로 소프트 아키텍처의 차이점 모놀리틱 아키텍처는 소프트웨어의 모든 구성요소가 한 프로젝트에 통합되어 있는 구조입니다. 만약 소규모 프로젝트를 진행한다면 Monolithic Architecture가 훨씬 합리적이고 구성하기도 쉽고 이식하기도 쉬울 것입니다. 유지보..
JAVA Map, List JQuery Implementation
·
BackEnd
HashMap = function(){ this.map = new Array(); }; HashMap.prototype = { put : function(key, value){ this.map[key] = value; }, get : function(key) { return this.map[key]; }, getAll : function () { return this.map; }, clear : function () { this.map = new Array(); }, getKeys : function () { var keys = new Array(); for(var i in this.map){ keys.push(i); } return keys; } } function List() { this.elemen..
@Autowired @Resource @Inject
·
BackEnd
@Autowired //Support from Spring private LoginService logoutService; //LoginService type linked. @Autowired private LogoutService loginService; //LogoutService type linked. @Inject //Support from JAVA private LoginService logoutService; //LoginService type linked. @Inject private LogoutService loginService; //LogoutService type linked. @Resource private LoginService logoutService; // LogoutServi..