コントローラークラスの修正
This commit is contained in:
@@ -2,6 +2,7 @@ package com.example.demo.controller;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
@@ -17,6 +18,12 @@ import com.example.demo.service.ReturnService;
|
||||
@Controller
|
||||
public class LendingController {
|
||||
|
||||
// ログ出力用インスタンス
|
||||
private final static Logger LOGGER = Logger.getLogger(LendingController.class.getName());
|
||||
|
||||
// エラーメッセージ用の定数フィールド
|
||||
private final static String SEVERE_ERROR_MESSAGE = "エラーが発生しました!";
|
||||
|
||||
//まとめられたserviceクラスを入れる準備
|
||||
private final ReturnService returnService;
|
||||
|
||||
@@ -52,8 +59,8 @@ public class LendingController {
|
||||
// LendingForm form = new LendingForm();
|
||||
//
|
||||
//前の画面(bookList)から貰ったデータの移し替え
|
||||
// form.setId_book(idBook);
|
||||
// form.setNm_book(nmBook);
|
||||
// form.setIdBook(idBook);
|
||||
// form.setNmbook(nmBook);
|
||||
//
|
||||
//次の画面(application.html)へ渡す
|
||||
// model.addAttribute("lendingForm", form);
|
||||
|
||||
Reference in New Issue
Block a user