Guten Abend allerseits, ich hoffe, diese Nachricht findet Sie gut! Wenn Sie sich fragen, ob Änderungen an den folgenden Codezeilen vorgenommen werden müssen, wenn die folgenden Ausnahmen zurückgegeben werden (angegeben im Ausgangsabschnitt). Ihre Unterstützung wird sehr geschätzt.
public interface AuthService {
@PostMapping(
value = "/oauth/token",
consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE,
// consumes = {"application/x-www-form-urlencoded"},
produces = MediaType.APPLICATION_JSON_VALUE
// produces = {"application/json"}
)
LoginResponse authenticate(
@RequestParam(name = "grant_type") String grantType,
@RequestParam String username,
@RequestParam String password,
@RequestBody String reqBody
);
}
< /code>
Ausgabe: < /p>
[AuthService#authenticate(String, String, String, String)]:
[
{
"error": "invalid_request",
"error_description": "Missing form parameter: grant_type"
}
]
with root cause feign.FeignException$BadRequest: [400 Bad Request] during [POST]
< /code>
Versucht die folgenden mehrere Optionen, um das [url=viewtopic.php?t=20324]Problem[/url] zu beheben. Aber kein Glück bevorzugt. Ihre Anleitung wird sehr geschätzt.14:53:16.258 [http-nio-8090-exec-2] ERROR org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet] -
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception
[Request processing failed; nested exception is feign.FeignException$BadRequest:
[400 Bad Request] during [POST] to https call [AuthService#authenticate(String,String,String,String)]:
[
{
"error": "invalid_request",
"error_description": "Missing form parameter: grant_type"
}
]
]
with root cause
feign.FeignException$BadRequest: [400 Bad Request] during [POST] to https call [AuthService#authenticate(String,String,String,String)]:
[
{
"error": "invalid_request",
"error_description": "Missing form parameter: grant_type"
}
]
Option2:
Beobachtungen: Versuchen Sie Folgendes, um das Problem von Grant_type zu beheben. Aber kein Glück bevorzugt: < /p>
Guten Abend allerseits, ich hoffe, diese Nachricht findet Sie gut! Wenn Sie sich fragen, ob Änderungen an den folgenden Codezeilen vorgenommen werden müssen, wenn die folgenden Ausnahmen zurückgegeben werden (angegeben im Ausgangsabschnitt). Ihre Unterstützung wird sehr geschätzt.[code]public interface AuthService { @PostMapping( value = "/oauth/token", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE, // consumes = {"application/x-www-form-urlencoded"}, produces = MediaType.APPLICATION_JSON_VALUE // produces = {"application/json"} ) LoginResponse authenticate( @RequestParam(name = "grant_type") String grantType, @RequestParam String username, @RequestParam String password, @RequestBody String reqBody ); } < /code> Ausgabe: < /p> [AuthService#authenticate(String, String, String, String)]: [ { "error": "invalid_request", "error_description": "Missing form parameter: grant_type" } ] with root cause feign.FeignException$BadRequest: [400 Bad Request] during [POST] < /code> Versucht die folgenden mehrere Optionen, um das [url=viewtopic.php?t=20324]Problem[/url] zu beheben. Aber kein Glück bevorzugt. Ihre Anleitung wird sehr geschätzt.14:53:16.258 [http-nio-8090-exec-2] ERROR org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is feign.FeignException$BadRequest: [400 Bad Request] during [POST] to https call [AuthService#authenticate(String,String,String,String)]: [ { "error": "invalid_request", "error_description": "Missing form parameter: grant_type" } ] ] with root cause feign.FeignException$BadRequest: [400 Bad Request] during [POST] to https call [AuthService#authenticate(String,String,String,String)]: [ { "error": "invalid_request", "error_description": "Missing form parameter: grant_type" } ] [/code] Option2: Beobachtungen: Versuchen Sie Folgendes, um das [url=viewtopic.php?t=20324]Problem[/url] von Grant_type zu beheben. Aber kein Glück bevorzugt: < /p> [code]@PostMapping( value = "/oauth/token", // consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE, consumes = {"application/x-www-form-urlencoded"}, // produces = MediaType.APPLICATION_JSON_VALUE, produces = {"application/json"} ) < /code> Ausgabe: < /p> 02:29:32.547 [http-nio-8090-exec-4] ERROR org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is feign.FeignException$BadRequest: [400 Bad Request] during [POST] to [https]: [ { "error": "invalid_request", "error_description": "Missing form parameter: grant_type" } ] ] with root cause feign.FeignException$BadRequest: [400 Bad Request] during [POST] to [https:] [AuthService#authenticate(String,String,String,String)]: [ { "error": "invalid_request", "error_description": "Missing form parameter: grant_type" } ] at feign.FeignException.clientErrorStatus(FeignException.java:213) ~[feign-core-11.8.jar!/:?] [/code]
Diese Frage ist eine offene Frage nach neuen Ideen. > Paging, Sortieren und Filtern
studentservice:
public Page getStudentsWithFilters(String firstname, String lastname, Integer age, Pageable...
Ich verwende die Flutter -Linux -App, um APIs auszuführen, die ich mit schnellen APIs geschrieben habe, die lokal auf meinem Ubuntu -Computer ausgeführt werden. flutter: Error during registration:...