<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page session="false" %>
<html>
<head>
<title>Home</title>
</head>
<body>
<form action = "listAll" method="get">
<button type ="submit">CRUD게시판 가기</button>
<h1>
Hello world!
</h1>
<P> The time on the server is ${serverTime}. </P>
</body>
</form>
</html>
위에있는 home.jsp에서 curd 게시판 가기라는 부분을 누르면
아래있는 컨트롤러에서 읽어서 list값을 받아 listAll로 이동하라고 작성을 했는데
계속 Request processing failed; nested exception is java.lang.NullPointerException 이러한 에러가 뜨네요 ㅠ
private BoardService service;
@RequestMapping(value="/listAll", method=RequestMethod.GET)
public void listAll(Model model) throws Exception {
model.addAttribute("list",service.listAll());
}