私はいくつかの例を見てきました
<a href="<spring:url value='/about/' />" >About </a>
これを試して、Jettyからエラーが発生します
Caused by: org.apache.jasper.JasperException: /WEB-INF/views/footer.jspx(6,22) The value of attribute "href" associated with an element type "null" must not contain the '<' character.
見落としているエンコーディング設定はありますか?
私が見た春のURLを使用する他の例は醜いので、これは残念です
<spring:url value='/about' var="about_url" />
<a href="${about_url}" title="About MyFit">About MyFit</a>
テンプレート内のすべてのハイパーリンクに本当に追加の行が必要ですか?
これはかなり些細なことで、私は見落としていましたか?