전자정부 프레임 워크 사용법을 배워보았다
spring + egovframework(lib) + andorid + bybatis 등이 종합돼있다.
spring life cycle
ContextLoaderListener :없으면 spring이아니라고 할수있을만큼 중요
native(자바,스프링이 아닌 언어)
ex)자바 기반으로 했지만 네이티브언어도 하나 들어갔습니다
listener(spring 일하는것 감시)
filter-encoding(utf-8) *.do
autoscan (@Controller 찾는다)있으면
@requestMapping(urlmapping ex(list.do)
이제부터 mybatis연동 (sql과의 연계)
(mybatis 사용 이유: 공통처리가 편하다)
->service 등록 -> 해당 dao로 이동
@controller:context-servlet.xml 등에서 설정하고, @controller가 있어야만 @requestMapping urlpath를 받을수있다
Vo: request parameter name (뷰쪽에서
받아오는 값들)
service interface : 실제 mybatis api 몸체
*serviceimplement class : 실제 mybatis api 몸체 구현하는곳
spring: 모든설정은 *.xml 공통처리하기위함
spring boot = 공통 xml이 없다
apllication.properties에서 처리