当前搜索:

Spring MVC + Mybatis (@Transactional) + Hibernate (AOP)

<beans default-lazy-init="true" xmlns="http://www.springframework.org/schema/beans" xmlns:xsi=&qu...
阅读(7) 评论(0)

Java NIO2 -- AIO CompletionHandler

package com.xiuye.nio; import java.io.IOException; import java.net.InetSocketAddress; import java.net.StandardSocketOptions; import java.nio.ByteBuf...
阅读(12) 评论(0)

Java NIO2 -- AIO Callable -- Future

package com.xiuye.nio; import java.io.IOException; import java.net.InetSocketAddress; import java.net.StandardSocketOptions; import java.nio.ByteBuf...
阅读(5) 评论(0)

Java NIO

package com.xiuye.nio; import java.io.IOException; import java.net.InetSocketAddress; import java.net.ServerSocket; import java.nio.ByteBuffer; impo...
阅读(4) 评论(0)

CUDA user-defined dim3

#include<stdio.h> #include<stdlib.h> #include<conio.h> typedef unsigned int * cons...
阅读(4) 评论(0)

嵌入式Tomcat简单地尝试下

package com.xiuye.server; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.se...
阅读(11) 评论(0)

Apache + Tomcat 简单地试一试

Download  jk_module (Search and Get from Network)!Apache conf/httpd.conf tail append : #load module LoadModule jk_module modules/mod_jk.so #load prop...
阅读(103) 评论(0)

Nginx + Tomcat 简单地试一试

/conf/nginx.cnf:#user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info...
阅读(11) 评论(0)

Java 对异步非阻塞的尝试

package com.xiuye.jdk.issue; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class CompletionThoughtTest...
阅读(9) 评论(0)

CAS(Compare-and-Swap) 简单地实现程序操作的原子性

#include<iostream> #include<thread> using namespace std; /** * CMPXCHG r1/m,r2 * if eax == r1/m { * r1...
阅读(11) 评论(0)

简单编译下Memory Barrier指令,看看能不能编译,验证Existence

#include<iostream> using namespace std; int main(){ cout << "start..." <&a...
阅读(19) 评论(0)

Java 注解处理器简单地实现,看看是什么效果

import javax.annotation.processing.AbstractProcessor; import javax.annotation.processing.ProcessingEnvironment; import javax.annotation.processing.Ro...
阅读(3) 评论(0)

Java 0b 0 0x p e 下划线 除数0 浮点数正负无穷.NaN(数学未定义行为)

package com.xiuye.jdk.issue; public class DivideZero { public static void main(String []args){ System.out.println(0.0000_0000_0000_01 == 0.00...
阅读(6) 评论(0)

CMD 脚本运行程序下的完整路径(不是当前路径)

@echo off rem @echo %cd% rem @echo %~d0 rem @echo %~dp0 rem @echo %~df0 set JBE_ROOT=%~dp0 rem echo %JBE_ROOT% java -cp %JBE_ROOT%\bin ee.ioc.cs.jbe...
阅读(7) 评论(0)

Gallery Modified a little

function showPic(whichPic){ var placeHolder = document.getElementById("placeHolder"); if(!placeHolder)return false;//节点存在性判...
阅读(6) 评论(0)

Web Gallery 简单地写一写

function showPic(whichPic){ var src = whichPic.getAttribute("href"); var placeHolder = document.getElementById("pl...
阅读(7) 评论(0)

获取html元素节点总个数

document.getElementsByTagName("*").length 1376
阅读(7) 评论(0)

Java AccessController.doPrivileged 简单的操作

package com.xiuye.security; public class Privilege { public static void main(String[] args) { System.setProperty("java.security.polic...
阅读(10) 评论(0)

Java HashCode 简单的了解了解

2^5 = 32 31 = 32 - 1 = 2^5 - 1for(int i = 0;i < len ;i++){ h = h*31 + num[i]; } hashcode = h 以上循环看成如下实例: abcde 看成 31 进制的数,位:高 -&...
阅读(3) 评论(0)

Java security policy 简单的操作

package com.xiuye.security; import java.io.FilePermission; import java.security.AccessController; import java.security.PrivilegedAction; public cla...
阅读(9) 评论(0)
    个人资料
    持之以恒
    等级:
    访问量: 23万+
    积分: 6087
    排名: 5153
    最新评论