上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页
摘要: Summary 配置文件的各个部分 buildscript 区域 该区域中有 repositories、dependencies 配置,标识 gradle 脚本自身需要使用的资源。 而在build.gradle文件中直接声明的依赖项、仓库地址等信息是项目自身需要的资源。 buildscript { 阅读全文
posted @ 2020-06-15 13:46 duchaoqun 阅读(268) 评论(0) 推荐(0) 编辑
摘要: Summary 查看 Grails 和 JVM 版本信息 grails -version 创建应用 grails create-app helloworld 在应用文件夹进入交互窗口 grails 清理项目 grails clean 发布项目 grails war IDEA 命令 Ctrl + Al 阅读全文
posted @ 2020-06-15 10:59 duchaoqun 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Summary Grails 是 Groovy开发,基于Gradle工具构建。 Demo buildscript { repositories { maven { url "https://repo.grails.org/grails/core" } } dependencies { classpa 阅读全文
posted @ 2020-06-15 10:44 duchaoqun 阅读(296) 评论(0) 推荐(0) 编辑
摘要: Summary 官方文档:http://docs.grails.org/latest/ref/Controllers/render.html Grails 的 Controller 创建一个完整的响应给浏览器,render 响应另外一个页面,但是 URL 还是当前的 Action,直接处理GPS页面,不通过目标 GSP 的 Action 方法。 render :action_name 在同一个... 阅读全文
posted @ 2020-06-11 16:38 duchaoqun 阅读(117) 评论(0) 推荐(0) 编辑
摘要: Summary 基础知识 bit 二进制数系统中,每个 0 或 1 就是一个位(bit),位是数据存储的最小单位。其中8bit就称为一个字节(Byte)。 计算机中的CPU位数指的是CPU一次能处理的最大位数。例如32位计算机的CPU一次最多能处理32位数据。 Byte 在Java中是整数类型,占用 1byte 空间。 取值范围是 −27" role="prese... 阅读全文
posted @ 2020-06-11 16:11 duchaoqun 阅读(581) 评论(0) 推荐(0) 编辑
摘要: CentOS 联网安装 yum install mysql # 安装客户端 yum install mysql mysql-server # 安装服务端 Ubuntu 16 联网安装 sudo apt-get install mysql-server # 服务端 sudo apt-get insta 阅读全文
posted @ 2020-06-10 10:55 duchaoqun 阅读(74) 评论(0) 推荐(0) 编辑
摘要: Summary 提交数据 可以使用 submitButton 的 formaction 属性,提交到不同的方法上。 enctype 属性规定在将表单数据发送到服务器之前如何对其进行编码(只有 method="post" 时才使用 enctype 属性)。 HTML Grails - GSP 保存 分词 阅读全文
posted @ 2020-06-10 09:03 duchaoqun 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Summary 使用框架的 template 功能,避免很多重复的代码操作。 在定义好模板之后,在页面上直接 render 即可。 Demo 先定义 template ,创建模板文件layouts/_navCommon.gsp,然后编写以下内容。 可以在 layouts 目录根据需求创建很多模板,需要留意文件名称前面的下划线。 ... 阅读全文
posted @ 2020-06-09 10:49 duchaoqun 阅读(97) 评论(0) 推荐(0) 编辑
摘要: submitButton Purpose Creates a submit button using the indicated value as the caption. JavaScript event handlers can be added using the same parameter names as in HTML. Examples Description Att... 阅读全文
posted @ 2020-06-08 17:18 duchaoqun 阅读(66) 评论(0) 推荐(0) 编辑
摘要: Summary # 基本用法 systemctl list-unit-files --type service # 查看全部服务 systemctl status name.service # 查看服务状态 systemctl start name.service # 启动服务 systemctl 阅读全文
posted @ 2020-06-02 15:48 duchaoqun 阅读(209) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 16 下一页