accessInitializer -> @Component, ExceptionController#invalidSession(...)

추가
master
mjkhan21 1 year ago
parent a01274ed20
commit 0cac241cfa

@ -94,6 +94,26 @@
<version>${org.egovframe.rte.version}</version>
</dependency>
<!--dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>6.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.servlet.jsp</groupId>
<artifactId>jakarta.servlet.jsp-api</artifactId>
<version>3.1.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.servlet.jsp.jstl</groupId>
<artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
<version>3.0.0</version>
</dependency-->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>

@ -9,6 +9,7 @@ import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.LocaleResolver;
import org.springframework.web.servlet.ModelAndView;
@ -26,6 +27,7 @@ import cokr.xit.foundation.component.ServiceRequest;
*
* <p>AccessInitializer .</p>
*/
@Component("accessInitializer")
public class AccessInitializer extends RequestInterceptor {
@Resource(name="applicationContainer")
protected ApplicationContainer applicationContainer;

@ -55,6 +55,20 @@ public class ExceptionController extends AbstractController {
.addObject("home", true);
}
/** ModelAndView .
* @param hreq 릿
* @return ModelAndView
*/
@RequestMapping("/error/invalidSession.do")
public ModelAndView invalidSession(HttpServletRequest hreq) {
return new ModelAndView(ajaxRequest() ? "jsonView" : "error/errorPage")
.addObject("path", getAction(hreq))
.addObject("failed", true)
.addObject("status", "invalidSession")
.addObject("message", message("invalidSession"))
.addObject("home", true);
}
/** ModelAndView .
* @param hreq 릿
* @return ModelAndView

Loading…
Cancel
Save