HTTP 405 Not Allowed - Spring Boot + Spring Security
问题 I have a simple rest API which works with database. It worked properly until I added the security part. Now it gives HTTP 405 Not Allowed on the POST and DELETE requests. I have no idea why. The GET requests work properly. So here is the controller class: @Controller public class MarkerController { private Logger logger = Logger.getLogger(MarkerController.class.getName()); @Autowired private MarkerServiceInterface markerService; @RequestMapping(value="/markers", method=RequestMethod.GET)