fix Integer
This commit is contained in:
@ -29,7 +29,7 @@ public class ProductController {
|
||||
}
|
||||
|
||||
@GetMapping("/delete/{id}")
|
||||
public String deleteProduct(@PathVariable Long id) {
|
||||
public String deleteProduct(@PathVariable Integer id) {
|
||||
productRepository.deleteById(id);
|
||||
return "redirect:/";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user