java.lang.ClassNotFoundException: org.aspectj.lang.annotation.Aspect 에러가 나는 경우 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customerBo' defined in ServletContext resource [/WEB-INF/spring/root-context.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/lang/annotation/Aspect java.lang.ClassNotFoundException: org.aspectj.lang.annotation.Aspect 위와 같은 에러가 나는 경우 .. 더보기 The prefix "aop" for element "aop:aspectj-autoproxy" is not bound 에러가 날 때 The prefix "aop" for element "aop:aspectj-autoproxy" is not bound. 에러가 발생하면 xml 상단에 xmlns:aop="http://www.springframework.org/schema/aop"> 추가를 해준다.(beans 하위에) xmlns는 xml namespace의 약자인데 자세한 설명은 뒤에서 하겠다! 우리는 스프링이라는 엔진을 사용하는 사용자들이므로 조금 귀찮더라도 걔네들(?) 규약을 제대로 공부할 필요가 있다! 더보기 model.addAttribute()를 jsp(스크립트릿)에서 받는 방법 '@RequestMapping'을 통해서 'model.addAttribute("aaa", aaa)'로 던진 객체는 jsp(스크립트릿)에서 'request.getAttribute("aaa")'로 받을 수 있다! 가끔 하드코딩 등이 필요할 때 요긴하게(?) 사용할 수 있다. 더보기 이전 1 ··· 17 18 19 20 21 다음