<button class="btn btn-outline-light" type="button" onclick="location.href='${contextPath}/list.bo'">GO TO BOARD</button>
2.list.bo를 처리해주는 dispatcherServlet이 없기 때문에 web.xml에 생성
<!-- 일반 게시판 관련 -->
<servlet>
<servlet-name>boardServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring/appServlet/board-context.xml</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>boardServlet</servlet-name>
<url-pattern>*.bo</url-pattern>
</servlet-mapping>
</web-app>
appServlet 폴더 아래에 board-context생성

대분류에 맞춰 board관련 파일 생성

원하는 타입대로 받아오면 됨
public String selectBoardList(@RequestParam("page") int page) {
public class Pagination {
public static PageInfo getPageInfo(int currentPage, int listCount, int boardLimit) {
int pageLimit = 10;
int maxPage;
int startPage;
int endPage;
int boardLimit = 10;
}
}