2018의 게시물 표시

spring controller redirect

http://www.baeldung.com/spring-redirect-and-forward http://sime.tistory.com/119

git

s@hb5002 MINGW64 /c/purplike/workspace (master) $ git add *.java warning: LF will be replaced by CRLF in Project_Shop/src/main/java/com/mj/shop/HomeController.java. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in Project_Shop/src/main/java/com/mj/shop/member/MemberController.java. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in Project_Shop/src/main/java/com/mj/shop/product/ProductController.java. The file will have its original line endings in your working directory. s@hb5002 MINGW64 /c/purplike/workspace (master) $ git add *.xml warning: LF will be replaced by CRLF in .metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.8.3.20180227-2137.xml. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in .metadata/.plugins/org.eclipse.wst.server.core/tmp0/conf/context.xml. T

model viewname

/shop/detail?p_code=#  model.setViewName("detail?p_code="+vo.getId()); //WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/shop/WEB-INF/views/detail] in DispatcherServlet with name 'appServlet' return model;

java.lang.IllegalStateException: Type handler was null on parameter mapping for property 'imgFile'. It was either not specified and/or could not be found for the javaType (org.springframework.web.multipart.MultipartFile) : jdbcType (null)

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSession' defined in ServletContext resource [/WEB-INF/spring/appServlet/servlet-context.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalStateException: Type handler was null on parameter mapping for property 'imgFile'. It was either not specified and/or could not be found for the javaType (org.springframework.web.multipart.MultipartFile) : jdbcType (null) combination. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1634) at org.springframework.beans.f