《
结合使用 Apache Geronimo 和 Lift》是lift的一个不错的例子,不过由于代码更新,部分地方有一点修正,凭记忆记录下要点
1.Full 改用import net.liftweb.common.Full
2. Can[Connection] = { --->> Box[Connection] = {
3. "submit" --> submit(?("Update"), ignore => {}), -->
"submit" --> submit(("Update"), processEntry),
def processEntry () = { S.error("success") }
4. Menu(Loc("update", "/update", "The Update Page")) :: -->
Menu(Loc("update", List("update"), "The Update Page")) ::
5.mvn archetype:generate -U -DarchetypeGroupId=net.liftweb -DarchetypeArtifactId=lift-archetype-basic -DarchetypeVersion=2.2 -DremoteRepositories=http://scala-tools.org/repo-releases -DgroupId=com.desu.fanst -DartifactId=fanst
1.Full 改用import net.liftweb.common.Full
2. Can[Connection] = { --->> Box[Connection] = {
3. "submit" --> submit(?("Update"), ignore => {}), -->
"submit" --> submit(("Update"), processEntry),
def processEntry () = { S.error("success") }
4. Menu(Loc("update", "/update", "The Update Page")) :: -->
Menu(Loc("update", List("update"), "The Update Page")) ::
5.mvn archetype:generate -U -DarchetypeGroupId=net.liftweb -DarchetypeArtifactId=lift-archetype-basic -DarchetypeVersion=2.2 -DremoteRepositories=http://scala-tools.org/repo-releases -DgroupId=com.desu.fanst -DartifactId=fanst
转载于:https://blog.51cto.com/desuzh/498334