摘要:
方案1:spring-cloud-starter-stream-rabbit 一、添加依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-stream-rabbit 阅读全文
摘要:
最近开发过程中,遇到一个场景。即要在打印日志的时候对json中部分字段进行加密操作(数据传输时不需要加密)。 一下是选定的解决方案。 JAVA项目: 一、使用“注解”配合fastjson的“值过滤器”,实现对字段自动加密。 1.1 创建自定义注解【EncryptionField】。 import j 阅读全文
摘要:
一、添加依赖 <!--添加mongodb功能--> <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-mongodb</artifactId> <version>2.1.8.RELEASE 阅读全文
摘要:
一、添加依赖 <dependency> <groupId>com.ctrip.framework.apollo</groupId> <artifactId>apollo-client</artifactId> <version>1.4.0</version> </dependency> 二、添加配置 阅读全文
摘要:
一、添加依赖 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </dependency> <dependency> <g 阅读全文
摘要:
一、添加依赖 <!--添加redis功能--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 阅读全文
摘要:
一、功能:依赖注入 Lombok注解:构造器注入:@RequiredArgsConstructor_ABin-阿斌的博客-CSDN博客_lombok 构造器注入 https://blog.csdn.net/isea533/article/details/78072133 https://blog.c 阅读全文
摘要:
sqlserver转java实体对象: select '/**'+char(13)+char(10) +'*'+isnull(CONVERT(VARCHAR(100),g.value),'') + char(13)+char(10) +'*/'+char(13)+char(10) +'@TableF 阅读全文
摘要:
.net core 1.查看系统是否已安装net core命令:dotnet --info如果提示未找到命令,说明需要按照net core环境,否则跳过2,3两步 2.查看系统版本,这里是CentOS 7命令:cat /etc/redhat-release 3.根据系统版本找到安装命令【https: 阅读全文
摘要:
sqlserver 查询根据索引字段查询记录时,如果要查询的记录非常多,需要将要查询的值转为xml,并导入临时表中进行查询。 写法:1 DECLARE @XMLDocument XML SET @XMLDocument='<Root> <Row><A>898989898</A><B>123213</ 阅读全文