2017年12月6日

LeetCode记录-easy-007Reverse Integer

摘要: Given a 32-bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: 思路:先把数字求绝对值x,然后x%10取最后一位,然后ans = ans*10 + x%10,加上最后一位。然后 阅读全文

posted @ 2017-12-06 13:23 任性的大萝卜 阅读(81) 评论(0) 推荐(0) 编辑

数据库导入时报2006或相应错误的解决方法

摘要: 产生此错误的原因:导入的数据库字段或表长度超过了默认数据库导入长度! 输入在数据库命令窗口输入以下内容可以解决: 手动将长度进行扩展 阅读全文

posted @ 2017-12-06 11:28 任性的大萝卜 阅读(145) 评论(0) 推荐(0) 编辑

2017年12月4日

LeetCode记录-easy-001 Two Sum

摘要: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文

posted @ 2017-12-04 13:02 任性的大萝卜 阅读(76) 评论(0) 推荐(0) 编辑

2017年11月3日

Spring mvc中@Value

摘要: applicationContext.xml database.properties 阅读全文

posted @ 2017-11-03 15:31 任性的大萝卜 阅读(326) 评论(0) 推荐(0) 编辑

Spring mvc中@RequestParam 基本用法

摘要: 使用@RequestParam可以将URL中的请求参数,绑定到方法的入参上,并通过@RequestParam的3个参数进行配置 其实不使用@RequestParam,SpringMVC也会将request的parameter自动绑定到method的parameter中, 使用@RequestPara 阅读全文

posted @ 2017-11-03 13:42 任性的大萝卜 阅读(2021) 评论(0) 推荐(0) 编辑

Spring mvc中@RequestMapping 基本用法

摘要: 1)最基本的,方法级如上应用,例如: 1 @RequestMapping(value="/departments") 2 public String simplePattern(){ 3 4 System.out.println("simplePattern method was called"); 阅读全文

posted @ 2017-11-03 13:15 任性的大萝卜 阅读(123) 评论(0) 推荐(0) 编辑

2017年11月2日

实践生产中运用到的web.xml配置

摘要: 1.Web 应用名称:提供GUI工具可能会用来标记这个特定的Web应用的一个名称 2.上下文参数:声明应用范围内的初始化参数 在servlet里面可以通过 getServletContext().getInitParameter(“context/param”)得到 3.监听器配置 4.Servle 阅读全文

posted @ 2017-11-02 10:53 任性的大萝卜 阅读(94) 评论(0) 推荐(0) 编辑

基本web.xml格式

摘要: 最基本的web.xml格式: 阅读全文

posted @ 2017-11-02 10:33 任性的大萝卜 阅读(114) 评论(0) 推荐(0) 编辑

2017年10月10日

Hive中导出数据

摘要: 一、导出到本地文件 二、导出到HDFS中 三、导出到另一个表中 阅读全文

posted @ 2017-10-10 14:41 任性的大萝卜 阅读(96) 评论(0) 推荐(0) 编辑

Hive中导入数据

摘要: 一、从本地导入数据到Hive 二、从HDFS上导入数据到Hive 加载数据基本格式: -》本地路径:拷贝数据到hdfs -》hdfs路径:直接将hdfs的文件移动到对应的表的目录下 !!注意:没有OVERWRITE关键字,仅仅会把新增的文件增加到目标文件夹而不会删除之前的数据。如果使用OVERWRI 阅读全文

posted @ 2017-10-10 14:38 任性的大萝卜 阅读(163) 评论(0) 推荐(0) 编辑

导航