上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 66 下一页
摘要: run:Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/security/acl/UserInfo at weblogic.jndi.WLInitialContextFactory.getInitialCo... 阅读全文
posted @ 2015-09-17 21:06 yshy 阅读(2540) 评论(0) 推荐(0) 编辑
摘要: val one:PartialFunction[Int,String]={ case 1 => "one" case 2 => "two" case _ => "other numbers" } println(one(3)) 阅读全文
posted @ 2015-09-08 22:46 yshy 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 关于 Token,你应该知道的十件事原文地址:http://alvinzhu.me/blog/2014/08/26/10-things-you-should-know-about-tokens/原文是一篇很好的讲述 Token 在 Web 应用中使用的文章,而这是我和Special合作翻译的译文。1... 阅读全文
posted @ 2015-09-07 19:37 yshy 阅读(1001) 评论(0) 推荐(0) 编辑
摘要: 1:工程结构需要注意的是需要额外导入以下三个包:jackson-annotations-2.6.1.jarjackson-core-2.6.1.jarjackson-databind-2.6.1.jar2:配置文件(1)web.xml 30 ... 阅读全文
posted @ 2015-09-06 20:33 yshy 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 权限:package com.example.t02;import android.app.Activity;import android.app.Fragment;import android.content.Intent;import android.os.Bundle;import andro... 阅读全文
posted @ 2015-09-05 11:09 yshy 阅读(263) 评论(0) 推荐(0) 编辑
摘要: IDE:NetBeans8.0项目结构:(1)新建接口Hello.javapackage com.test;/** * @author y * @date 2015-9-5 7:51:29 * @version 1.0 * @desc */public interface Hello... 阅读全文
posted @ 2015-09-05 08:14 yshy 阅读(590) 评论(0) 推荐(0) 编辑
摘要: def multiply(m:Int)(n:Int):Int=m*n你可以直接传入两个参数:println(multiply(2)(3))你可以填上第一个参数并且部分应用第二个参数:val timesTwo=multiply(2)_println(timesTwo(3)) 阅读全文
posted @ 2015-09-04 12:50 yshy 阅读(151) 评论(0) 推荐(0) 编辑
摘要: def adder(m:Int,n:Int)=m+n val add2 = adder(2,_:Int) println(add2(3)) val add3 = adder(_:Int,3) println(add3(2))使用下划线“_”部分应用一个函数,结果将得到另一个函... 阅读全文
posted @ 2015-09-04 12:44 yshy 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 使用spark-1.4.1-bin-hadoop2.6进行处理,测试文件大小为3G,测试结果:1:统计一个文件中某个字符的个数scala> sc.textFile("/home/y/my_temp/1.txt").filter(line=>line.contains("ok")).count()sc... 阅读全文
posted @ 2015-09-02 08:42 yshy 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1:工程目录以及依赖jar包如下,如果缺少某些jar包在weblogic控制台下面会有提示2:applicationContext.xml配置文件 3:web.xml配置文件 30 ind... 阅读全文
posted @ 2015-08-31 22:14 yshy 阅读(578) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 66 下一页