Spring Boot - RestAPI 2


Spring Boot - RestAPI 2

Spring Boot - RestAPI 1 서버에 요청을 보내면 DB에 있는 데이터를 JSON으로 출력해 주는 API를 만들어볼게요.. http://lo... blog.naver.com 이전 게시글에 이어서.. 다른 서버에서 해당 API를 사용해 보도록 할게요.. 결과 화면>> 목록 가져오기 전.. 목록을 가져오게 되면 DB의 NAME이 출력됩니다. useApi.jsp <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> </head> <body> <h1>Use Api</h1> <hr> <h3>목록보기</h3> <button id="btn_list">목록가져오기</button> <div id="div_list"></div> </bo...



원문링크 : Spring Boot - RestAPI 2