SpringBoot

2023-10-30 14:35:53.029  WARN 12220 --- [nio-8080-exec-4] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'GET' not supported]
2023-10-30 14:37:57.395  WARN 12220 --- [nio-8080-exec-2] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'GET' not supported]
2023-10-30 14:38:02.255  WARN 12220 --- [nio-8080-exec-9] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'GET' not supported]

localhost:8080/customer

  {

    "id": "1001",

    "name": "高启强",

    "age": 35

}

{

    "timestamp": "2023-10-30T06:38:02.255+00:00",

    "status": 405,

    "error": "Method Not Allowed",

    "message": "",

    "path": "/customer"

}        

post

save: customer:Customer(id=1001, name=高启强, age=35)

你可能感兴趣的:(java,spring,tomcat)