私はリフトフレームの仕事をしています。github.com から 1 つのサンプル アプリをダウンロードし、さらに行を追加しようとしています。src/main/webapp に 1 つの index.html があります
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta content="text/html; charset=UTF-8" http-equiv="content-type" /> <title>Home</title></head>
<body class="lift:content_id=main">
<div id="main" class="lift:surround?with=default;at=content">
<h2>Welcome to your project!</h2>
<p>
<span class="lift:helloWorld.howdy">
Welcome to your Lift app at <span id="time">Time goes here</span>
</span>
</p>
</div>
</body>
</html>
次の行を追加しようとしています
<span class="lift:helloWorld.newHowdy">
Welcome to your Lift app at <span id="newTime"></span>
</span>
snippet フォルダの helloworld クラスに newHowdy メソッドを書きました。しかし、次のような 1 つのエラーがブラウザーに表示されます。 スニペットの処理中にエラーが発生しました: helloWorld.newHowdy 理由: メソッドが見つからない XML により、このエラーが発生しました:
どうすればこれを解決できますか? また、スニペットにページと .scala ファイルを追加して、html ページからアクセスする方法を教えてください。