728x90 분류 전체보기163 Javascript 필수 함수 정리 devpad.tistory.com/37 [조언] jQuery 보다 먼저 알았으면 좋았을 것들 개인적으로 도움이 됐던 포스팅입니다. 출처는 김정환 블로그 입니다. 웹 개발할 때 난 jQuery부터 사용하기 시작한 것 같다. 라이브러리가 주는 편리함 넘어 어떻게 DOM API를 사용하는지는 몰랐다 devpad.tistory.com > 출저 입니다. 1. DOM 선택 1) Id > document.getElementById( "Idvalue" ) document.querySelector( "#Idvalue" ) 2) class > document.getElementsByClassName( "classname" ) document.querySelectorAll( ".classname" ) 3) 태그명 > doc.. 2020. 11. 8. Mybatis XML없이 java로 설정 - @MapperScan 적용, BindingException 에러 mybatis.org/spring/ko/getting-started.html 공식문서를 보고 따라해도 안되서 하루라는 시간을 소비 했다. 아무리 구글링을 해도 나오지 않았고, 결국 해결하고 열받아서 나같은 사람을 위해 공유하고자 글을 쓴다. 내가 헤맨 부분은 @MapperScan 이 정상적으로 동작하지 않는 것이었다. org.apache.ibatis.binding.BindingException: Type interface practice.mybatis.mybatisMapper.MemberMapper is not known to the MapperRegistry. 이런 에러가 계속해서 발생했다. 결론을 말하자면 @Bean public MemberMapper memberMapper() throws Excep.. 2020. 10. 21. [백기선] 스프링 프레임워크 핵심 기술 정리5 - Validation Validation은 객체 검증용 인터페이스이다. 이클립스 스프링부트에서는 starter에 포함되어있지 않기 때문에 pom.xml에 org.springframework.boot spring-boot-starter-validation 를 새로 추가해 줘야한다. 최근 스프링 버전에서는 Validator 클래스가 Bean으로 자동 등록된다. 1. 클래스에 필드변수에 @NotEmpty 등 어노테이션 설정 public class Event { Integer id; @NotEmpty String title; @NotNull @Min(0) Integer limit; @Email String email; //... 이하 get set 메소드 } 2. Validator 클래스를 이용해 검증 package com.exam.. 2020. 10. 4. [백기선] 스프링 프레임워크 핵심 기술 정리4 - Resource - 리소스를 가져올 때 여러 경로로 가져올 수 있다. classPathResource : classpath 기준 FileSystemResource : 파일시스템 형식 ServletContextResource : 웹 어플리케이션 루트에서 상대경로 ... 예시) Resource resource = new FileSystemResource("beanConfiguration.xml"); - Context 설정시 Class를 따른다. 예시) ApplicationContext ctx = new ClassPathXmlApplicationContext("application.xml"); > ClassPathXmlApplicationContext 클래스를 사용하므로 classpath:application.xml로 동작한.. 2020. 10. 4. 이전 1 ··· 32 33 34 35 36 37 38 ··· 41 다음 728x90