摘要: 目标 打包一个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) 编辑
摘要: 使用IDEA 这里打 develop 包,直接输入 war 打生产包。 阅读全文
posted @ 2020-05-12 14:55 duchaoqun 阅读(272) 评论(0) 推荐(0) 编辑
摘要: grails-app/conf/application.yml server: port: 80 阅读全文
posted @ 2020-05-12 14:52 duchaoqun 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 将jar包统一放置到一个目录里面,然后再Build.gradle里面添加引用。 阅读全文
posted @ 2020-05-12 14:51 duchaoqun 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 在 Grails 中打印日志 在 controller 和 service 中使用Log: Demo 在配置文件中配置相关,grails-app/conf/logback.groovy def index(Integer max) { log.info("Test logging.") params.max = Math.min(max ?: 10, 100) ... 阅读全文
posted @ 2020-05-12 14:41 duchaoqun 阅读(171) 评论(0) 推荐(0) 编辑
摘要: Grails SDK 下载SDK,配置环境变量GRAILS_HOME和PATH grails-4.0.3.zip Create APP grails create-app cn.duchaoqun.demo cd demo run-app Install Grails Spring Security Core Plugin 在build中添加引用 compile "org.grai... 阅读全文
posted @ 2020-05-12 14:19 duchaoqun 阅读(309) 评论(0) 推荐(0) 编辑
摘要: Summary 使用 create user 创建的用户有 login 权限; 使用 create role 创建的用户默认没有 login 权限; ROLE -- 查询所有的 role select * from pg_roles order by rolname; -- 创建一个 role 仅有 rolinhert 权限,不能进行登录。 create role test_role1;... 阅读全文
posted @ 2020-05-12 10:07 duchaoqun 阅读(389) 评论(0) 推荐(0) 编辑
摘要: PostgreSQL Windows 安装 准备好安装包postgresql-11.5-1-windows-x64-binaries.zip 默认情况下,会将当前的 Windows 用户作为管理员,例如“Chris” 注意在初始化连接之后,在防火墙中开放5432端口。 安装 解压到E盘根目录中 E: 阅读全文
posted @ 2020-05-12 09:47 duchaoqun 阅读(280) 评论(0) 推荐(0) 编辑
摘要: Summary 解压zip压缩包命令 Demo yum install unzip -y unzip Discuz_X3.2_SC_UTF8.zip 阅读全文
posted @ 2020-05-12 08:55 duchaoqun 阅读(158) 评论(0) 推荐(0) 编辑