从jboss 6.4 EAP迁移到7.2 EAP时不支持请求方法'POST

时间:2019-12-12 13:21:25

标签: java spring-mvc spring-security jboss redhat

  

嗨,我收到“迁移后不支持请求方法的帖子   从Jboss 6.4 EAP到jboss 7.2 EAP的Web应用程序。

     “ method ='POST'style =” width:250px;   左边距:22%;“>              

@RequestMapping(value =“ / login”,method = RequestMethod.GET)             public String login(ModelMap模型){

          return "login";

    }
        <mvc:resources location="/static/" mapping="/static/**"/>
          <security:http pattern="/static/**" security="none"></security:http>
          <security:http use-expressions="true">
              <security:intercept-url pattern="/login*"
                  access="isAnonymous()" />
              <security:intercept-url pattern="/**"
                  access="hasAnyRole('${role.updater}','${role.dm}','${role.nsAdmin}')"
     

/>                                                                ->                     

              <security:headers>
                  <security:xss-protection/>
                  <security:cache-control/>

                      <security:content-type-options />
                      <security:hsts />
                      <security:frame-options />

              </security:headers>

              <security:csrf/>
          </security:http>

0 个答案:

没有答案