摘要: <dependency> <groupId>javax.validation</groupId> <artifactId>validation-api</artifactId> <scope>system</scope> <systemPath>/D:XXX.jar</systemPath></de 阅读全文
posted @ 2022-08-28 20:48 NIANER2011 阅读(55) 评论(0) 推荐(0) 编辑
摘要: aliyun aliyun Maven * http://maven.aliyun.com/nexus/content/groups/public/ ui Human Readable Name For this mirror central http://uk.maven.org/maven2/ 阅读全文
posted @ 2022-08-28 20:06 NIANER2011 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 1.单例模式 1.饿汉式 package com.serlyf.singleton; /** * 单例模式-饿汉式 * 1.构造私有 * 2.本类创建静态示例 * 3.getInstance()方法公开 */ public class SingleTon01 { //2.本类创建静态示例 priva 阅读全文
posted @ 2022-08-28 19:17 NIANER2011 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 1.新建Maven项目 2.pom文件导入 org.springframework.boot spring-boot-starter-parent 2.7.2 org.springframework.boot spring-boot-starter-web <dependency> <groupId 阅读全文
posted @ 2022-08-28 19:05 NIANER2011 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 2.Profile 2.1 Profile多文件 我们在主配置文件编写的时候,文件名可以是 application-{profifile}.properties/yml 默认使用application.properties的配置; 2.2 yml支持多文档块方式 # 使用‐‐‐分割 server: 阅读全文
posted @ 2022-08-28 19:02 NIANER2011 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 1,引入Swagger2相关依赖 <!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger2 --> <dependency> <groupId>io.springfox</groupId> <artifactId> 阅读全文
posted @ 2022-08-28 18:58 NIANER2011 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 在一个没有安装vim等命令的Linux环境中,没办法更新数据源,没办法软件的安装等的解决方案: 编辑数据源 vi /etc/apt/sources.list 删除全部内容并修改为 deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted 阅读全文
posted @ 2022-08-28 18:47 NIANER2011 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1.用户操作 1.添加用户 useradd aaa 2.指定目录 useradd -d /home/aaa aaa 3.删除用户 userdel aa 4.删除用户及目录 userdel -r aaa 5.查看用户信息 id aa 6.切换用户 su - aa 7.查看用户 who am i 2.用 阅读全文
posted @ 2022-08-28 18:46 NIANER2011 阅读(28) 评论(0) 推荐(0) 编辑