我在 Spring MVC 中实现 HDIV,但在登录页面中遇到了问题。由于 HDIV 需要使用form标签
(如:)<form:form action="${contextPath}/j_spring_security_check" method="post">,我的应用程序会抛出异常,因为我没有指定modelAttribute:
java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'command' available as request attribute
任何人都可以澄清这种担忧吗?有没有其他方法可以在登录页面上实现 HDIV?或者有没有办法在不使用的情况下实现 HDIV <form:?