首先创建好项目工程,如下图:完善pom.xml文件,具体为:(依据自己的spark版本做修改)<dependencies><dependency><groupId>org.scala-lang</groupId><artifactId>scala-library</artifactId><version>2.11.
分类:
其他好文 时间:
2020-07-14 09:21:08
阅读次数:
78
import java.util.regex.Matcher;import java.util.regex.Pattern; private static final Pattern AMOUNT_PATTERN = Pattern.compile("^(0|[1-9]\\d{0,11})\\.(\ ...
分类:
编程语言 时间:
2020-07-13 11:34:26
阅读次数:
64
[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render fun... ...
分类:
其他好文 时间:
2020-07-12 18:50:22
阅读次数:
74
94% asset optimization ERROR Failed to compile with 2 errors12:47:59 ├F10: PM┤ error in ./src/module/home/page/home.vue Module build failed: Error: No ...
/** * 方法名称:replaceBlank * 方法描述: 将string字符串中的换行符进行替换为"" * */ public static String replaceBlank(String str) { String dest = ""; if (str != null) { Patte ...
分类:
其他好文 时间:
2020-07-12 11:53:24
阅读次数:
108
啥也不说,百度一下,代码先搞起来 一、项目搭建 这里我使用的是 gradle 来构建项目的,spring boot 项目的搭建话这里就不做说明,如果还不会的自行学习。 compile 'org.springframework.boot:spring-boot-starter-security' 二、 ...
分类:
编程语言 时间:
2020-07-10 21:09:12
阅读次数:
53
一、存储过程概念 存储过程时一系列T-sql的集合,除了能进行正常的增删改查,还有逻辑控制,并可以设置输入、输出参数,返回值,可以接受多个结果集。 存储过程的优点: 1、运行速度快 存储过程是一系列T-sql经过编译后保存的数据库中,相比于多条sql每次编译运行,能直接提升数据库中的运行速度。 其次 ...
分类:
数据库 时间:
2020-07-10 19:04:41
阅读次数:
71
传递依赖的确定 问题:如果A依赖B(A→B),B依赖C(B→C),那么A是否一定依赖C(A→C)? 如果A依赖C,A依赖C的范围是什么?是compile还是test还是provided还是runtime?下表是这个问题的答案: 表1 根据上表,有:当A→B的范围是compile, B→C的范围是te ...
分类:
其他好文 时间:
2020-07-09 22:13:12
阅读次数:
81
安装此插件:Easy Compile "easycompile.compile": { "less": true }, "easycompile.less": { "sourceMap": true }, ...
分类:
其他好文 时间:
2020-07-07 17:31:06
阅读次数:
52
jstat命令可以查看堆内存各部分的使用量,以及加载类的数量。命令的格式如下: jstat [-命令选项] [vmid] [间隔时间/毫秒] [查询次数] 注意:这里使用的jdk版本是jdk8. 类加载统计: Loaded:加载class的数量 Bytes:所占用空间大小 Unloaded:未加载数 ...
分类:
Web程序 时间:
2020-07-05 00:56:45
阅读次数:
84