📄 visit.groovy
字号:
Animal shark = new zoo.fish.Shark()
Animal trout = new zoo.fish.Trout()
Animal forelle = new zoo.HommingbergerGepardenforelle()
println """
<html>
<head>
<title>Groovy Servlet Example - Visiting the zoo</title>
</head>
<body>
<p>Shark<br>
${shark.saySomething("\"Where is the trout?\"")}
<p>Trout<br>
${trout.saySomething("Here is the trout!")}
<p>Forelle<br>
${forelle.saySomething("\"<a href=\"http://www.hommingberger-forelle.de\">There is no spoon.</a>\"")}
</body>
</html>
"""
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -