本文分享Spring中如何实现Redis响应式交互模式。 本文将模拟一个用户服务,并使用Redis作为数据存储服务器。 本文涉及两个java bean,用户与权益 public class User { private long id; private String name; // 标签 priv ...
                            
                            
                                分类:
编程语言   时间:
2021-03-16 11:44:04   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    恢复内容开始 ##DockerFile 1.编写一个dockerfile文件 2.docker build构建成一个镜像 3.docker run 运行镜像 4.docker push 发布镜像(DockerHub、阿里云镜像仓库) ###很多官方镜像都是基础包,很多功能都没有,通常会自己构建。 # ...
                            
                            
                                分类:
其他好文   时间:
2021-02-10 13:21:29   
                                阅读次数:
0
                             
                    
                        
                            
                            
                                
                    OpenSessionInViewFilter (Spring Framework 5.2.9.RELEASE API) https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/orm/ ...
                            
                            
                                分类:
编程语言   时间:
2020-10-22 22:35:08   
                                阅读次数:
26
                             
                    
                        
                            
                            
                                    前言 建立Web Api项目 在同一个解决方案下建立一个Web Api项目IdentityServer4.WebApi,然后修改Web Api的launchSettings.json。参考第一节,当然可以不修改的,端口号为5001。 { "profiles": { "IdentityServer4. ...
                            
                            
                                分类:
Web程序   时间:
2020-07-14 21:43:42   
                                阅读次数:
93
                             
                    
                        
                            
                            
                                    1、导入--maven-工程 前提 配置maven 重写setting.xml+首选项maven-2个地方 2、pom springcloud 使用 Finchley版本对 springboot 的版本依赖是 2.0.3.RELEASE 新建springboot项目的过程 使用github 1、右键 ...
                            
                            
                                分类:
编程语言   时间:
2020-07-13 13:59:24   
                                阅读次数:
78
                             
                    
                        
                            
                            
                                我们之前说到项目中会用到各种object,vo,bo,dto等等。我们需要在不同的对象上复制属性。 一、BeanUtils和PropertyUtils 我们最常用的就是Common包里面的BeanUtils,或者Spring里面的BeanUtils. BeanUtils.copyProperties ...
                            
                            
                                分类:
其他好文   时间:
2020-07-09 12:16:29   
                                阅读次数:
200
                             
                    
                        
                            
                            
                                经过: 项目上线后经常报 Unexpected end of stream.; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Unexpected end of stream. 白天平均半个小 ...
                            
                            
                                分类:
其他好文   时间:
2020-05-22 21:09:10   
                                阅读次数:
119
                             
                    
                        
                            
                            
                                    为什么要用Https就不说了。 第一步:创建自签名的证书。在Windows下开启PowerShell,将以下文字粘贴进去: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 3 ...
                            
                            
                         
                    
                        
                            
                            
                                以控台的形式,运行.net core mvc 代码, Host.CreateDefaultBuilder(args) .ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>();//指定网络主机要使用的启动类型 ...
                            
                            
                                分类:
Web程序   时间:
2020-04-18 15:39:03   
                                阅读次数:
70
                             
                    
                        
                            
                            
                                    https://www.cnblogs.com/datacool/p/datacool_dotnetcore_demo.html 实践技术看点 1、Swagger管理API说明文档 2、JwtBearer token验证 3、Swagger UI增加Authentication 4、EntityFr ...