摘要: 示例1 项目结构 代码 controller中 UserController.java package com.example.demo1110.controller; import com.example.demo1110.entity.User; import com.example.demo1 阅读全文
posted @ 2021-11-11 11:47 子岚天羽卿怜水 阅读(458) 评论(1) 推荐(1)
摘要: springboot Entity层:实体层 数据库在项目中的类 Entity层是实体层,也就是所谓的model,也称为pojo层,是数据库在项目中的类,该文件包含实体类的属性和对应属性的set、get方法; DAO层: 持久层 主要与数据库进行交互 DAO层=mapper层,现在用Mybatis逆 阅读全文
posted @ 2021-11-10 13:49 子岚天羽卿怜水 阅读(28) 评论(0) 推荐(0)
摘要: docker gitlab gitlab镜像拉取 # gitlab-ce为稳定版本,后面不填写版本则默认pull最新latest版本 $ docker pull gitlab/gitlab-ce 运行gitlab镜像 $ docker run -d -p 443:443 -p 80:80 -p 22 阅读全文
posted @ 2021-11-10 09:43 子岚天羽卿怜水 阅读(81) 评论(0) 推荐(0)
摘要: 格式化时间戳 select id,name,FROM_UNIXTIME(time,'%Y-%m-%d %H:%i:%s') as addtime from testtable where totaltime != ''; //time是时间戳字段,查出来之后是格式化的数据 ,重命名为 addtime 阅读全文
posted @ 2021-11-05 09:47 子岚天羽卿怜水 阅读(135) 评论(0) 推荐(0)
摘要: http://springboot.javaboy.org/2019/0412/springboot-init maven 创建springboot2 创建完成后,在 pom.xml 文件中,添加如下依赖: <parent> <groupId>org.springframework.boot</gr 阅读全文
posted @ 2021-11-01 10:02 子岚天羽卿怜水 阅读(42) 评论(0) 推荐(0)
摘要: 打开一个网站(注意http协议要一致),按F12打开开发者工具,在Console栏中输入下列代码,点击回车执行 var xhr = new XMLHttpRequest(); xhr.open("GET", "http://xxx.com/orders"); xhr.send(null); xhr. 阅读全文
posted @ 2021-10-27 17:25 子岚天羽卿怜水 阅读(328) 评论(0) 推荐(0)
摘要: composer require wenhainan/thinkphp6-auth 配置 // auth配置 自定义数据表位置在 ./config/auth.php里面 [ 'auth_on' => 1, // 权限开关 1开启;0关闭 'auth_type' => 1, // 认证方式,1为实时认 阅读全文
posted @ 2021-10-25 11:24 子岚天羽卿怜水 阅读(967) 评论(0) 推荐(0)
摘要: tp5 Env::get('root_path'); tp6 $root = app()->getRootPath(); 阅读全文
posted @ 2021-10-19 16:40 子岚天羽卿怜水 阅读(324) 评论(0) 推荐(0)
摘要: php think make:controller mpos@admin/v1/Blog --plain 应用名@一层目录/二层目录/控制器名称 路由 Route::get("test2","admin.v1.Blog/test2"); 验证器 php think make:validate mpo 阅读全文
posted @ 2021-10-11 10:51 子岚天羽卿怜水 阅读(1214) 评论(0) 推荐(0)
摘要: -- 创建 boot 数据库 CREATE DATABASE IF NOT EXISTS jspring DEFAULT CHARSET utf8 COLLATE utf8_bin; -- 选择 boot 数据库 USE jspring; -- 创建 user 表 SET NAMES utf8mb4 阅读全文
posted @ 2021-07-21 10:58 子岚天羽卿怜水 阅读(44) 评论(0) 推荐(0)