首页 \ 问答 \ Java 使用 freemarker 模板引擎的相关疑问 ,求大神走过路过不要错过

Java 使用 freemarker 模板引擎的相关疑问 ,求大神走过路过不要错过

项目需要 放弃 jsp 改用 freemarker , 一般使用 freemarker 的 ftl 做前端页面 还是 使用 html 做页面呢 ?? 还有如果用 html 做页面, 怎么配置 web.xml 文件 ? 使用 ftl 和 html 做前端有什么 区别吗 ? 还是可以两者同时存在 一起用 ....?
更新时间:2022-06-11 13:06

最满意答案

你好,你这种情况有两种解决办法,说明文档跟随程序,程序直接用相对路径打开说明文档。第二种就是说明文档放在网上,点击帮助按钮直接跳转到该网页

其他回答

嗯,怎么说呢。每一个gui程序都有一个称为顶层(toplevel)的窗口管理器用于管理那些窗口部件,如按钮,输入框之类的,这个窗口管理器就是这些下级部件的master,顶级窗口的master是none即,它自己管理自己。
回到你的问题,(1)第4行的master=none是表示application这个类的master默认为none,即它是顶层窗口。
(2)第13行中的app.master是返回当前顶层窗口的对象,然后再调用title这个方法设置title,master=none只是表明app是顶层窗口而已。

我自己理解的。

相关问答

更多
  • 1.在终端中输入init 3进入命令界面: #init 3 2.如果希望下次重启后直接进入命令界面,更改下面的文件 #vim /etc/inittab id:5:initdefault:改成 id:3:initdefault: 3.命令界面进入图形界面 #startx 前提要有安装图形界面
  • 如果你说的是用python开发图形界面=》pyqt 如果是说ide=》pycharm
  • 可以去图书馆查嘛,不过我听说symbian 主要用c++;,
  • 你可以选择一本python方面的书籍,一版教程上都有讲到python如何进行图形界面程序开发。一般的python是通过使用图形界面库快速开发图形程序。库有好多种。教程里一般都有介绍。各有优缺点。默认安装了python就自带一个图形界面库,那就是Tkinter。python的自带编辑器和shell解释器就是这个界面。除此之外用得比较广的还有wxpython库,等等。这些可以到网上了解了解。教程也有得看。使用起来相当方便。
  • python图形界面[2022-12-07]

    这是pyqt4的代码:(你想要安装才可以使用) from PyQt4 import QtCore, QtGui class Ui_helloword(object): def setupUi(self, helloword): helloword.setObjectName("helloword") helloword.resize(400, 300) self.label = QtGui.QLabel(helloword) self.label.setGeometry(QtCore.QRect(70, 8 ...
  • 1.Python并不擅长GUI的开发,关键是因为它没有类似于VS这样的强力IDE的支持,虽然也有几个可用的IDE,但是的确不给力;2.Tkinter是比较老的图形库了,Linux下很多小工具就用它。目前可选的图形库有pyQt、wxPython,用pyQt的比较少,大都是从C/C++转过来,曾有过Qt经验的开发者,资料不多。相对说来,用wxPython的多一些,因为除了不少资料(关键是还有中文的《wxPython in Action(中文版)》Noel Rappin, Robin Dunn著 滴水 译.pdf ...
  • 你好,你这种情况有两种解决办法,说明文档跟随程序,程序直接用相对路径打开说明文档。第二种就是说明文档放在网上,点击帮助按钮直接跳转到该网页
  • 推荐楼主去看python自带的文档,或者去网上下载本《python核心编程》里面有详细的用法和介绍!
  • navicat for mysql
  • 如果您的目标是Windows,则可以使用Win32 API。 EnumWindows函数枚举子窗口,或者您可以使用EnumThreadWindows仅枚举非子窗口。 我希望这可以给你一些帮助。 If your target is Windows you can use Win32 API. EnumWindows function enumerates child windows, or alternatively you can use EnumThreadWindows to enumerate onl ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)