JAVA/spring

    [1028 from 스프링 백기선 JPA]Hibernate _ 엔티티, Cascade, Fetch, Query FROM EntityManager

    ERROR1. error creating bean with name 'entitymanagerfactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/hibernatejpaconfiguration.class]: invocation of init method failed; nested exception is org.hibernate.service.spi.serviceexception: unable to create requested service [org.hibernate.engine.jdbc.env.spi.jdbcenvironment] 두번째 서버 올렸을 때 postgresql 서버가 내려가있다는 메시지 ..

    스프링 목차

    스프링 코어 IoC 컨테이너와 빈 Environment, MessageSource, ApplicationEventPublisher, ResourceLoader Validation, 데이터 바인딩. SpEL, AOP,Null-safety

    [1028 FORM 백기선 스프링프레임워크 핵심기술] SpEL, AOP,Null-safety

    스프링목차 SpEL 스브링EL 객체 그래프를 조회, 조작하는 기능 Unified EL과 비슷하지만, 메소드 호출 지원, 문자열템플릿 기능도 제공. OGNL MVEL, JBOss EL 등 자바에서 사용할 수 있는 여러 EL 이 있지만 , SpEL은 모든 스프링 프로젝트 전반에 걸처 사용할 EL로 만듬. 스프링 3.0 부터. ExpressionParser parser = new SpelExpressionParser() StandardEvaluationContext context = new StandardEvaluationContext(bean) >> 함수. 가능. Expression expression = parser.parseExpression(“SpEL 표현식”) String value = express..

    [1028 FORM 백기선 스프링프레임워크 핵심기술] Validation, 데이터 바인딩.

    import static 단축키 1. settings > Editor > General > Auto Import Add unambiguous imports on the fly Optimize imports on the fly (for current project) 두개 체크 후 저장 2. 그리고 status() 뒤 alt + enter 로사용. **() 뒤에서 알트엔터 출처 :hjjungdev.tistory.com/102 스프링목차 스프링 validator org.springframework.validation.Validator; 객체 검증 인터페이스. - supports : 검증할수 있는 클래스인지 확인. public boolean supports(Class clazz){ return Event.cla..

    반응형