调整Book基础内容(可以正常访问请求)
This commit is contained in:
		@@ -1,12 +1,12 @@
 | 
			
		||||
package com.test.controller;
 | 
			
		||||
 | 
			
		||||
import com.test.entity.Book;
 | 
			
		||||
import com.test.service.BookService;
 | 
			
		||||
import org.springframework.web.bind.annotation.PathVariable;
 | 
			
		||||
import org.springframework.web.bind.annotation.RequestMapping;
 | 
			
		||||
import org.springframework.web.bind.annotation.RestController;
 | 
			
		||||
 | 
			
		||||
import javax.annotation.Resource;
 | 
			
		||||
import java.awt.print.Book;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * ClassName: BookController
 | 
			
		||||
@@ -22,7 +22,7 @@ public class BookController {
 | 
			
		||||
    BookService service;
 | 
			
		||||
 | 
			
		||||
    @RequestMapping("/book/{bid}")
 | 
			
		||||
    Book findBookById(@PathVariable("bid") int bid){
 | 
			
		||||
    Book findBookById(@PathVariable("bid") int bid) {
 | 
			
		||||
        return service.getBookById(bid);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -2,8 +2,7 @@ package com.test.mapper;
 | 
			
		||||
 | 
			
		||||
import org.apache.ibatis.annotations.Mapper;
 | 
			
		||||
import org.apache.ibatis.annotations.Select;
 | 
			
		||||
 | 
			
		||||
import java.awt.print.Book;
 | 
			
		||||
import com.test.entity.Book;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * ClassName: BookMapper
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
package com.test.service;
 | 
			
		||||
 | 
			
		||||
import java.awt.print.Book;
 | 
			
		||||
import com.test.entity.Book;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * ClassName: BookService
 | 
			
		||||
 
 | 
			
		||||
@@ -5,7 +5,7 @@ import com.test.service.BookService;
 | 
			
		||||
import org.springframework.stereotype.Service;
 | 
			
		||||
 | 
			
		||||
import javax.annotation.Resource;
 | 
			
		||||
import java.awt.print.Book;
 | 
			
		||||
import com.test.entity.Book;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * ClassName: BookServiceImpl
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user