使用Velocity生成代码
摘要:Velocity前端语法 变量 $name 或 ${name} 定义变量 建议使用 ${name} $name这种命名,有些命名类似的无法区分 如$name,$names 设置常量 #set($constant1="$") 注:因为$符号是Velocity的语法所以根据设置常量方式来赋值$ 如果判断
阅读全文
nginx配置文件
摘要:user nginx; #配置运行 nginx 服务器用户 worker_processes 1; # 配置允许生成的 worker process 数 error_log /var/log/nginx/error.log warn; # 配置错误日志的存放路径 pid /var/run/nginx
阅读全文
在 linux系统中使用docker部署web项目
摘要:环境 Ubuntu 16.04 注意:我这里docker,mysql等都是安装最新版如果需要则在docker官网搜索相应版本安装 docker搜索对应网址:https://hub.docker.com/search?image_filter=official&q= 步骤 1.更新apt包 注:apt
阅读全文