@RequestMapping이다 클라이언트 코드가 필요 나머지 API를 사용하여 삭제 작업을 수행해야 한 나머지 URL을 필요로 (값 = "/ RemoveOneSubject은"방법은 = RequestMethod.POST) 공공의 ModelAndView RemoveOneSubject은 (HttpServletRequest의 요청) 발생 IOException가 {난 내가 내 코드이
ModelAndView model = new ModelAndView("RemoveOneSubject");
final String uri = "http://localhost:8080/subject/api/remove/{id}";
String id = request.getParameter("id");
RestTemplate restTemplate = new RestTemplate();
restTemplate.delete (uri,id);
model.addObject("theSubject", id);
return model;
enter code herejsp is
삭제에 대한
<table id="myTable" class="table table-striped">
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Created by</th>
<th>Created time</th>
</td></th>
</tr>
</thead>
<tbody>
<c:if test="${not empty theSubject}">
<c:forEach var="listValue" items="${theSubject}">
<tr>
<td><input type="checkbox" name="chkBox"></td>
<td><a href=""><c:out value="${listValue.name}" /></a></td>
<td><c:out value="${listValue.createdBy}" /></td>
<td><c:out value="${listValue.createTime}" /></td>
<td><c:out value="${listValue.studentID}"></c:out></td> </tr>
</c:forEach>
</c:if>
</tbody>
</table>
[mcve]를 읽고 적절하게 질문을 수정하십시오. 힌트 : 미리보기 창은 이유가 있습니다. 우리는 문제 해결에 많은 시간을 할애하여 잘 정리 된 포괄적 인 질문을 작성하는 데 시간을 투자하시기 바랍니다. – GhostCat