简述 WordCount(单词计数)作为大数据体系的标准示例,一直是入门的经典案例,下面用java和scala实现Flink的WordCount代码; 采用IDEA + Maven + Flink 环境;文末附 pom 文件和相关技术点总结; Java批处理版本 运行输出结果如下: Java流处理版 ...
分类:
编程语言 时间:
2019-11-28 19:14:57
阅读次数:
101
一、概述1.3 参数绑定过程1.2 @RequestParam二、自定义绑定使用属性编辑器2.1 使用WebDataBinder(了解)2.2 使用WebBindingInitializer(了解)三、自定义参数绑定使用转换器3.1 实现Converter接口3.2 配置转换器一、概述1.3 参数绑... ...
分类:
编程语言 时间:
2019-11-28 13:11:15
阅读次数:
72
public class Cat { // Auto-implemented properties. public int Age { get; set; } public string Name { get; set; } public Cat() { } public Cat(string na ...
using System.Reflection; static void ShowEnvironmentInfoDemo() { Type type = typeof(Environment); PropertyInfo[] pis = type.GetProperties(); if (pis !... ...
匿名认证 目录 1.1 配置 1.2 AuthenticationTrustResolver 对于匿名访问的用户,Spring Security支持为其建立一个匿名的AnonymousAuthenticationToken存放在SecurityContextHolder中,这就是所谓的匿名认证。这样 ...
分类:
编程语言 时间:
2019-11-27 19:03:18
阅读次数:
73
约束 public abstract class BaseModel { public int Id { get; set; } } 连接字符串 public static readonly string Customers = ConfigurationManager.ConnectionStri ...
分类:
数据库 时间:
2019-11-26 19:43:32
阅读次数:
68
在学习ansible的时候,设置新用户时遇到坑,比较隐蔽,一而再地中招,于是记录下 第一次, 直接用明文 看返回应该是成功创建了,但反复尝试登录发现不成功,肯定不是输错密码,没有留意到warning,不过上网查一下,发现不能直接传明文 第二次, openssl加密 参考 https://blog.c ...
分类:
其他好文 时间:
2019-11-25 20:47:29
阅读次数:
206
这几天因为阿里云迁移到腾讯云的原因,原来服务器上的disconf不再使用了。在这段时间里,系统出现的bug很难寻找原因(项目起不来),现在想要把disconf远程配置更改成直接使用本地配置。首先,了解一下disconf的使用:看官方文档,前两节就差不多了 disconf官方文档:https://di ...
分类:
其他好文 时间:
2019-11-25 20:12:24
阅读次数:
208
一、引入maven插件的jar包 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>${maven-resources.versi ...
分类:
编程语言 时间:
2019-11-25 13:45:25
阅读次数:
76