摘要: 什么是 Java 的注解 如何在 Java 中定义一个注解 注解通过 @interface 关键字进行定义。 public @interface TestAnnotation { } 上面的代码就创建了一个名字为 TestAnnotaion 的注解。 那么如何使用这个注解呢? 下面的代码创建一个类 阅读全文
posted @ 2023-05-03 13:02 湖风雨晚晴 阅读(14) 评论(0) 推荐(0) 编辑
摘要: Spring 注解 注解本身是没有功能的,注解是一种元数据,即解释数据的数据,这也是所谓的配置。 Spring 常用注解列表 @Component 表示一个带注释的类是一个“组件”,成为 Spring 管理的 Bean。当使用基于注解的配置和类路径扫描时,这些类被视为自动检测的候选对象。 同时,@C 阅读全文
posted @ 2023-05-03 12:23 湖风雨晚晴 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 开启 SSH 防火墙允许 SSH 搜索 YaST Firewall,打开防火墙配置。 在 public 中添加 ssh 即可。 开启 SSH vi /etc/ssh/sshd_config PasswordAuthentication yes service sshd start 开机启动 serv 阅读全文
posted @ 2022-11-23 14:34 湖风雨晚晴 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 问题 运行 yum update 出现以下错误 Errors during downloading metadata for repository 'baseos': Curl error (60): SSL peer certificate or SSH remote key was not OK 阅读全文
posted @ 2022-08-24 10:55 湖风雨晚晴 阅读(3023) 评论(0) 推荐(0) 编辑
摘要: 版本控制 语义化版本(Semantic Versioning) https://semver.org/ 传统版本 https://docs.microsoft.com/en-us/dotnet/standard/assembly/versioning 流程处理 https://www.bpmn.or 阅读全文
posted @ 2021-11-01 22:03 湖风雨晚晴 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 官网链接 https://junit.org/junit5/docs/current/api/ https://site.mockito.org/ http://powermock.github.io/ https://javadoc.io/doc/org.mockito/mockito-core/ 阅读全文
posted @ 2020-11-10 21:50 湖风雨晚晴 阅读(192) 评论(0) 推荐(0) 编辑
摘要: screen Create a new screen.screen -S <screen name> Create a new screen with name.screen -ls List all screens.screen -d <sessionid> Detach a screen.scr 阅读全文
posted @ 2020-07-07 20:07 湖风雨晚晴 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 使用以下命令设置 Backspace 为 erase,可以解决这个问题。 stty erase ^? stty erase ^H 阅读全文
posted @ 2020-07-06 10:57 湖风雨晚晴 阅读(833) 评论(0) 推荐(0) 编辑
摘要: 1. Ubuntu 端准备 Ubuntu 安装 xrdp 和 vnc sudo apt-get install xrdp sudo apt-get install tightvncserver 启动 xrdp 服务 sudo service xrdp restart 2. Windows 端连接 用 阅读全文
posted @ 2020-07-02 21:15 湖风雨晚晴 阅读(569) 评论(0) 推荐(0) 编辑
摘要: 插件 mSessionKeeper 保持 session alive 设置network.prefetch-next = false Firefox的预加载功能,当载入一个网页后,火狐会预加载你可能会打开的网页链接内容,如果你打开这个链接,网页就会很快加载。不过,很多时候这个功能是多余的,CUP和宽 阅读全文
posted @ 2020-07-02 15:52 湖风雨晚晴 阅读(349) 评论(0) 推荐(0) 编辑