Deploy Spring Boot app in Weblogic

后端 未结 4 1649
礼貌的吻别
礼貌的吻别 2020-12-08 05:47

I\'m having a trouble deploying a Spring boot application in webLogic 12C.

10.4.4 403 Forbidden The server understood the request, but is refusing to fulfill it. Au

4条回答
  •  春和景丽
    2020-12-08 06:06

    If you are going to use multipart file request, you may still find issues in deploying the war.

    The root of the problem is that OrderedCharacterEncodingFilter is running after HiddenHttpMethodFilter. HiddenHttpMethodFilter triggers processing of the request body as it calls getParameter on the request. OrderedCharacterEncodingFilter then runs and sets the request's encoding. Setting the request's encoding after its body has been processed is bad and, on WebLogic, causes the request to lose track of all its multipart data.

    A workaround is to disable the character encoding filter in application.properties:

    spring.http.encoding.enabled: false
    

提交回复
热议问题