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