- 博客(10)
- 收藏
- 关注
原创 K8S配合 jenkins 完整一键安装
---------------------------------------------初始化创建容器-------------------------------------------------------------文件中所有的 test 都要换成你创建容器时的名字 demo换成你的 jar 包名字 command中的目录要和打包时候一致。流程为:代码打包--打成 docker 镜像--上传到阿里云镜像管理--通过阿里云镜像内容更新现有容器。创建容器 demo 为取好的名字,记住后面要用。
2023-07-14 17:04:02
605
1
原创 mapstruct使用,对象互转赋值
gradle 依赖api 'org.mapstruct:mapstruct:1.4.2.Final' api 'org.mapstruct:mapstruct-processor:1.4.2.Final' testAnnotationProcessor 'org.mapstruct:mapstruct-processor:1.4.2.Final' annotationProcessor 'org.mapstruct:mapstruct-processor:1.4.2.Final
2022-03-18 11:19:48
1150
原创 RSA 非对称加密解密简单实现方法
package com.vguang.legalheadlines.law.controller;import cn.hutool.crypto.asymmetric.KeyType;import cn.hutool.crypto.asymmetric.RSA;import org.springframework.beans.factory.annotation.Value;import org.springframework.web.bind.annotation.GetMapping;im.
2022-01-04 11:21:29
584
原创 双因子验证机制简单实现
@RestController@RequestMapping("/twoFactor")public class TwoFactorController { /** * We can use a Map to simulate the database. */ protected Map<String, String> userSecret = new ConcurrentHashMap<>(); @GetMapping("/bind.
2021-12-31 16:59:44
767
原创 POI导出Excel表格
public void export(@RequestBody PassRecordFindAllVm model, HttpServletResponse response) throws Exception { List<PassRecordEntity> allList = passRecordService.exportAll(model); String[][] strArray = allList.stream().map(x -> { .
2021-12-31 10:29:41
209
1
原创 Spring boot @ConfigurationProperties注解使用
@Component@ConfigurationProperties(prefix = "xxx.config")public class IotSaasConfiguration { private String haha; private String xixi;}创建实体类加入以上2个注解,可以获取到配置文件对应的值赋值入实体类中在需要使用的service中直接注入即可,会自动赋值...
2021-12-31 09:54:52
247
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人