# shf-parent **Repository Path**: weiranyi/shf-parent ## Basic Information - **Project Name**: shf-parent - **Description**: shf-parent - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-09-19 - **Last Updated**: 2022-11-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 1.1 数据库的准备 ### 1.1.1 创建数据库 ```bash 创建一个名为 db_house 的数据库 ``` ### 1.1.2 使用自动化工具Flyway完成自动建表工作 ```bash mvn flyway:clean && mvn flyway:migrate ``` ## 1.2 启动zookeeper ```bash # windows环境下(启动 zkServer.cmd,zkCli.cmd) # 查看命令: ls / ls /dubbo # 移除命令: rmr /dubbo ``` ## 1.3 项目初始化 ```bash # shf-parent mvn clean && mvn install ``` ### 后台前端框架 - 后台前端框架模板:Hplus ```bash 1、创建webapp/static 2、将Hplus的css、fonts、img、js、plugins导入到webapp/static ``` ### 弹出层封装 - 弹出层框架:layer ```bash 1、添加、修改、删除功能需要使用弹出层的方式进行处理 注:hplus-master已引入layer框架,在static/js/plugins/layer 2、将弹出层封装为myLayer.js ``` ### 笔记: 1、page VS pageinfo ```bash pageHepler的功能是通过拦截器来实现的,其pageInfo是内部封装好的。Page和PageInfo对象是我们和pageHelper沟通的桥梁 1.一般是在mybatis-config.xml 中配置拦截器 2.PageHelper.startPage(pageNum, pageSize);返回一个page对象 ``` 2、Linux中查看端口占用情况并杀死进程 ```bash netstat -anp | grep 8080 kill pid kill -9 pid 强制杀死进程 ``` 3、Windows中查看端口占用情况并杀死进程 ```bash netstat -aon|findstr 8080 taskkill /pid 进程ID taskkill /f /pid 进程ID 强制杀死进程 taskkill /f /t /pid 进程ID 强制杀死进程,还包括由它启用的子进程 想看看指定编号的进程是哪个程序呢 tasklist | findstr pid ``` 4、Spring Security框架 ```bash # 403 - 服务器拒绝请求;长期拒接访问(Spring Security权限验证403的时候) ```