mybatis-config.xml에서 자동으로 카멜케이스 규칙변환 사용시 가끔 변환이 안되고 에러가 나는경우가 있다. ex) COLUMN : AB01_CD ---------------------------------------------------------------------------------------------------- org.hibernate.engine.jdbc.spi.SqlExceptionHelper.logExceptions(:129) - SQL Error: 207, SQLState: S0001 org.hibernate.engine.jdbc.spi.SqlExceptionHelper.logExceptions(:131) - 열 이름 'ab01Cd'이(가) 유효하지 않습니다. excepti..
1. StringUtils.isEmpty("값") 2. StringUtils.isNumeric("값") 3. StringUtils.isAlpha("값") import org.springframework.util.StringUtils; import org.springframework.util.ObjectUtils; String의 경우 if (StringUtils.isEmpty(value)) { => value가 null이거나 ""일경우 true } Object의 경우 if (ObjectUtils.isEmpty(value)) { => value가 null이거나 ""일경우 true } ---------------------------------------------- apache의 StringUtils를 사용..
repeat : String 메서드 중 하나로 주어진 횟수만큼 반복 (Arrays.fill()및 System.arraycopy()메서드를 호출) 0번 반복시 빈 문자열을 반환 음수 반복시 IllegalArgumentExceptionthrow 에러를 반환 public class Repeat { public static void main(String[] args) { // String 및 StringBuilder 호출 String str = "Hello"; StringBuilder sb = new StringBuilder(); // 반복문을 사용하여 문자열 반복 for(int i = 0; i for문 System.out.println..