Spring Session Timeout 스프링 세션 타임아웃 설정

Spring version ? WEB-INF/web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> ...         <session-config> <session-timeout> 0 </session-timeout> </session-config> </web-app> 단위 분 minute 디폴트 30분 0은 타임아웃 없음 무한대 https://blueyikim.tistory.com/253

javax.servlet.jsp.JspTagException: Don't know how to iterate over supplied "items" in <forEach>

javax.servlet.jsp.JspTagException: Don't know how to iterate over supplied "items" in &lt;forEach&gt; jsp <c:forEach var="list" items="${list}"> 에서 list가 아닌 값을 items에 넣었을 때 발생하는 에러 class A의 멤버에 리스트가 있는데 class A 자체를 대입시켰더니 에러남 Controller model.addAttribute("list", ClassA); -> Solution: model.addAttribute("list", ClassA.getList()); https://hadoobidoop.tistory.com/entry/%EC%8A%A4%ED%94%84%EB%A7%81-%EC%98%A4%EB%A5%98-%EC%9D%BC%EA%B8%B0-javaxservletjspJspTagException-Dont-know-how-to-iterate-over-supplied-items-in-ltforEachgt

Spring Log

- commons-logging + s, log4j https://sjh836.tistory.com/161 Controller.java import org.slf4j.Logger; import org.slf4j.LoggerFactory; @Controller public class Controller {     private static final Logger logger = LoggerFactory.getLogger(Controller.class); } 2019-08-21 17:38:27 [INFO ] (Controller.home:120) |LOGINFORM| src/main/resource/log4j.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <!-- Appenders --> <appender name="console" class="org.apache.log4j.ConsoleAppender"> <param name="Target" value="System.out" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} [%-5p] (%C{1}.%M:%L) %m%n...

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...