上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页
摘要: Summary 自动编译加载,就不用再次重启项目,热加载。 Setting Ctrl+Shift+A 搜索Registry。 开启:compiler.automake.allow.when.app.running 配置。 阅读全文
posted @ 2020-05-26 17:31 duchaoqun 阅读(446) 评论(0) 推荐(0) 编辑
摘要: Nginx 安装 CentOS 系统 # 添加 yum 源,CentOS6 - CentOS7 rpm -Uvh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm rp 阅读全文
posted @ 2020-05-26 10:43 duchaoqun 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Summary 在APP中嵌入一个网页,相当于一个内置的浏览器,固定访问我们的服务。 Demo import UIKit import WebKit class ViewController: UIViewController { override func viewDidLoad() { supe 阅读全文
posted @ 2020-05-21 09:20 duchaoqun 阅读(1108) 评论(0) 推荐(0) 编辑
摘要: Summary 在访问异常的时候展示错误页面。 Demo1 内容根据需求写,如果404.html的小于512字节的话,那么IE会认为这个错误页面不够“友好”,会忽视掉的! 必须放置在网站根目录(www/)中 # 在httpd.conf中设置对目录开启。 AllowOverride All # 然后在 阅读全文
posted @ 2020-05-21 08:54 duchaoqun 阅读(297) 评论(0) 推荐(0) 编辑
摘要: Summary 在阿里云申请免费证书,得到如下三个文件 Demo # 安装软件 yum install mod_ssl openssl httpd -y # 修改配置文件/etc/httpd/conf.d/ssl.conf,将上述文件传到指定的位置上,然后修改如下配置值即可。 SSLCertific 阅读全文
posted @ 2020-05-21 08:46 duchaoqun 阅读(1471) 评论(0) 推荐(0) 编辑
摘要: Summary ordered lists 无序列表 Demo <ol> <li>Html</li> <li>Html</li> <li>Html</li> <li>Html</li> </ol> 阅读全文
posted @ 2020-05-19 10:04 duchaoqun 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Summary 页面上的循环 Demo 使用默认的方式,循环变量名称默认为 it Title: ${it.title} Author: ${it.author} 指定一个变量名称,这样更容易理解 Title: ${book.title} Author: ${book.author} 使用状态变量,在循环过程中,status从1开始... 阅读全文
posted @ 2020-05-15 09:39 duchaoqun 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Summary dbCreate: update参数,默认 development 中配置的是 create-drop create create-drop: 每次重启都会清空历史数据,开发环境使用,避免手动更新数据 update :生产的时候用这个,保留现有的数据,并且只在代码更改时更新表结构,但是Hibernate的更新支持是非常保守的,它不会进行任何可能导致数据丢失的更改,也不会检测重命... 阅读全文
posted @ 2020-05-14 11:12 duchaoqun 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 目标 打包一个war文件,然后部署到Java EE容器中。 案例 grails war grails test war grails -Dgrails.env=staging war 介绍 用法:grails environment* war arguments* 默认情况下,war命令根据程序名称和版本创建一个war包。war命令与大多数命令不同,因为它默认指定的是生产环境,而不是在... 阅读全文
posted @ 2020-05-12 15:07 duchaoqun 阅读(1068) 评论(0) 推荐(0) 编辑
摘要: Summery 在一些上传功能中,页面上传文件大小有限制: Demo 这里修改 application.yml 中的 controllers 参数 controllers: defaultScope: singleton upload: maxFileSize: 31457280 // 文件大小 maxRequestS... 阅读全文
posted @ 2020-05-12 15:05 duchaoqun 阅读(245) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页