logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Java中Return和Finally执行顺序的实现

下面这段代码的执行结果是怎样的呢?publc int test(){int x;try{x = 1;return x;}catch(Exception e){x = 2;return x;}finally{x = 3;}}相信对Java比较熟悉的朋友马上会说出正确答案:正常返回1,异常返回2。我第一次看到这段代码时

ubuntu查看占用某端口的程序

查看端口使用情况,使用netstat命令。查看已经连接的服务端口(ESTABLISHED   netstat -a 查看所有的服务端口(LISTEN,ESTABLISHED)     netstat -ap 查看8080端口,则可以结合grep

#ubuntu
Please read "Security" section of the manual to find out how to run mysqld as root!错误解决

在虚拟机中安装了CentOS时安装了Nami版的Rendmine,没有设置MySQL自动启动,手动启动时出现Please read "Security" section of the manual to find out how to run mysqld as root!错误,根据提示,查了 /opt/redmine-1.2.1-1/mysql/docs/mysql.info

#数据库#运维
在linux中下载iTunesU的课程

iTunes中有很多好的资源,但可惜iTunes并没有Linux的版本,而且在wine中安装功能也不全,尤其是我在wine中装了iTunes后仍然无法下载课程。好在社区提供了一个不错的ItunesU搜索和下载软件,TunesViewer。下载地址:http://tunesview

#linux
在linux中下载iTunesU的课程

iTunes中有很多好的资源,但可惜iTunes并没有Linux的版本,而且在wine中安装功能也不全,尤其是我在wine中装了iTunes后仍然无法下载课程。好在社区提供了一个不错的ItunesU搜索和下载软件,TunesViewer。下载地址:http://tunesviewer.sourceforge.net/下载相应的deb或rpm包,进行安装就可以了。...

Errors occurred while updating the change sets for SVNStatusSubscriber的解决

在linux的eclipse中,保存文件时出现了这个问题:Errors occurred while updating the change sets for SVNStatusSubscriber看详细信息发现我的build文件夹不在svn中,将其加入到svn中就可以了。当然,这不是一种好的方法,但可以用作权宜之计。

#eclipse#svn#linux
Web.xml配置详解之context-param

转自:http://blog.csdn.net/liaoxiaohua1981/article/details/6759206 格式定义:[html] viewplaincopycontext-param>  param-name>contextConfigLocationparam-name>  param-value>con

Web.xml配置详解之context-param

转自:http://blog.csdn.net/liaoxiaohua1981/article/details/6759206 格式定义:[html] viewplaincopycontext-param>  param-name>contextConfigLocationparam-name>  param-value>con

Java中自动装箱代码初探

《深入理解Java虚拟机》中讲语法糖时,提到了下面这个例子(不是原文中的例子,我自己改过):public class AutoBoxingTest {/*** @param args*/public static void main(String[] args) {Integer a = 1;Integer b = 2;Integer c = 127;

virtual box中安装CentOS5.6

我的系统是ubutnu11.04,最近打算部署trac等项目管理系统,因此打算在虚拟机里面做一个CentOS系统。首先,在ubuntu中安装virtualbox,可以在softwre center(软件中心)中搜索到其次,下载CentOS镜像。镜像有两种,一种是livec

#centos#虚拟机#ubuntu
    共 15 条
  • 1
  • 2
  • 请选择