摘自:https://www.cnblogs.com/qingyunzong/p/8945933.html 一、Spark中的基本概念 (1)Application:表示你的应用程序 (2)Driver:表示main()函数,创建SparkContext。由SparkContext负责与Cluste ...
分类:
其他好文 时间:
2019-03-03 16:05:39
阅读次数:
300
spring整合mybatis的时候,传统dao模式test报错 发现是在pojo类user对应的user.xml中配置路径写错了 ...
分类:
数据库 时间:
2019-03-03 11:08:15
阅读次数:
177
SQLAlchemy-Utils SQLAlchemy-Utils 由于sqlalchemy中没有提供choice方法,所以借助SQLAlchemy-Utils组件提供的choice方法 import datetime from sqlalchemy import create_engine fro ...
分类:
其他好文 时间:
2019-03-02 17:13:25
阅读次数:
234
依赖 pom.xml 获取连接,三种方式 1、BasicDataSource 配置文件方式 dbcp.properties 2、PoolingDataSource 3、PoolingDriver 官方文档 http://www.cnblogs.com/wang-meng/p/5463020.html ...
分类:
数据库 时间:
2019-03-01 12:55:05
阅读次数:
158
Spring不仅可以通过xml配置获取*.properties,还可以通过@Value注解的方式来获取,将properties配置文件中的属性值注入到java成员变量。 如果不想每次都写private final Logger logger = LoggerFactory.getLogger(XXX ...
分类:
编程语言 时间:
2019-03-01 12:34:46
阅读次数:
198
1.功能点:使用aop拦截含有自定义注解的类 1.自定义注解 2.使用切面 [Xlint:invalidAbsoluteTypeName]error 原因一般是point后面的地址错误,我的原因是后面多加了&& +自定义注解名称 2)没进入后置通知: 第一次的时候,写的是 @AfterReturni ...
分类:
其他好文 时间:
2019-02-28 23:07:27
阅读次数:
323
We annihilate the need for the ol' nested for loop using Applicatives. For example we have this kind of nested loop code: We can refactor it by using ...
分类:
移动开发 时间:
2019-02-28 21:19:09
阅读次数:
210
这里对几个常见的的名词进行介绍 Executor 这是个接口,只声明了一个方法—— Executors 然后是Executors类,这个可以看作是个公共类,它提供了许多强大有用的获取线程池的static方法: 1.public static ExecutorService newFixedThrea ...
分类:
其他好文 时间:
2019-02-28 16:40:48
阅读次数:
193
private static final String C_ACTION_CREAT_ACTIVITY = "meeting_register_addActivity"; @RequestMapping(value = "/addActivity") public CIPResponseMsg ad ...
分类:
编程语言 时间:
2019-02-28 14:58:13
阅读次数:
145