摘要: 在一个没有安装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) 编辑
摘要: //1.定义产品 //2.抽象构造者,定义抽象方法 //3.具体建造者,生产具体的建造方法 //4.指挥者,负责生产具体的产品 package com.serlyf.builder; //产品 public class House { private String basic; private St 阅读全文
posted @ 2022-08-27 22:59 NIANER2011 阅读(18) 评论(0) 推荐(0) 编辑
摘要: package com.serlyf.server.exception; import java.sql.SQLException; import java.sql.SQLIntegrityConstraintViolationException; import org.springframewor 阅读全文
posted @ 2022-08-27 20:45 NIANER2011 阅读(36) 评论(0) 推荐(0) 编辑
摘要: log4j.properties set log levels log4j.rootLogger = INFO,stdout,E out console log4j.appender.stdout = org.apache.log4j.ConsoleAppender log4j.appender.s 阅读全文
posted @ 2022-08-27 20:31 NIANER2011 阅读(14) 评论(0) 推荐(0) 编辑
摘要: Redis configuration file example. Note that in order to read the configuration file, Redis must be started with the file path as first argument: ./red 阅读全文
posted @ 2022-08-27 20:29 NIANER2011 阅读(15) 评论(0) 推荐(0) 编辑
摘要: COMMON SPRING BOOT PROPERTIES This sample file is provided as a guideline. Do NOT copy it in its entirety to your own application. ^^^ CORE PROPERTIES 阅读全文
posted @ 2022-08-27 20:28 NIANER2011 阅读(112) 评论(0) 推荐(0) 编辑
摘要: public interface Car { String excute();}public class BenchiCar implements Car { public String excute() { System.out.println("奔驰车生产...."); return "OK"; 阅读全文
posted @ 2022-08-24 22:40 NIANER2011 阅读(25) 评论(0) 推荐(0) 编辑
摘要: public interface Car { String excute();} public class BenchiCar implements Car{ public String excute() { System.out.println("奔驰车生产...."); return "OK"; 阅读全文
posted @ 2022-08-23 23:56 NIANER2011 阅读(19) 评论(0) 推荐(0) 编辑
摘要: /** * 单例模式-枚举类型(推荐使用) */public enum SingleTon07 { INSTANCE; public void hello() { System.out.println("hello~"); }} 阅读全文
posted @ 2022-08-22 23:18 NIANER2011 阅读(23) 评论(0) 推荐(0) 编辑