ITeye博客

 

buyi_ · 共 5 篇文章

[置顶] Axis2开发WebService并打包成.war包发布

新手初来咋到,因为工作原因需要使用到WebService,网上找资料的时候看到很多Axis2开发的webservice都是打包成arr格式附带到Axis2框架上发布,这样不能打包成war发布。 整理了一些资料了解了一种可以把Axis2开发的WebService打包成war包发布。 一、环境准备 使用Axis来开发Web services 需要准备 web 服务器,Axis API。本文使用的Web container 是Tomcat6.0, Axis API 采用版本2。 1.1软件下载准备 Tomcat下载地址: http://tomcat.apache.org/download-55.c…

2013-09-17 23:56 · Web · 评论(0)

$.post请求SpringMvc控制器 415 Unsupported Media Type

学习笔记 用$.post(url,dataParam,callback,datatype)方式访问spring mvc控制器的时候,发现一直访问不通,查看浏览器请求头报文发现错误码:415 Unsupported Media Type java代码: @RequestMapping(method = RequestMethod.POST, value = "/test") @ResponseBody public boolean checkMonitorName(@RequestBody MonitorConfig config) { return null; 出现这个问题可能原因: 1、 …

2014-04-22 15:47 · Web · java · 评论(2)

[java版]5位跳水高手参加10米高台跳水决赛,有好事者让5人据实力预测比赛结果

public class T { public static void main(String[] args) { boolean[] isRight = new boolean[5]; // 分别代表各位的逻辑判断 int[] personValue = new int[5]; // 分别代表5位选手的名次 String[] person = new String[] { "A", "B", "C", "D", "E" };// 分别代表5位选手 for (personValue[0] = 1; personValue[0] <= 5; personValue[0]++) for (per…

2013-12-09 14:56 · java · 评论(0)

java操作FTP,实现上传下载

import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import sun.net.TelnetOutputStream; import sun.net.ftp.FtpClient; /* * @author * */ class FTPUtil { /** * 连接到FTP * * @param IP * 地址 * @param userName * 用户名 * @param passWord * 密码 * @return Ft…

2013-11-01 13:26 · java · 评论(0)

一道经典的JAVA面试题

public class M { public static void main(String[] args) { N n = N.getInstence(); System.out.println("a = " + n.a); System.out.println("b = " + n.b); } } class N { public static int a; public static int b = 0; private static N n = new N(); private N() { a++; b++; } public static N getInstence() { re…

2013-09-18 00:42 · java · 评论(0)