修也

实践出真知.

Java java -jar xxx.jar的classpath问题

要想运行java jar,并且设置好该jar的运行时依赖包,就行下面这个命令: java -Xbootclasspath/a:依赖的jar名.jar -jar xxx.jar  

2018-09-16 20:17:24

阅读数:79

评论数:0

CSS 梯形页标签 实现(主要利用transform属性)

.ladder2{ position:relative;/* * */ display:inline-block; padding: .3em 1em 0; /* z-index:1; */ } .ladder2::before{ content: ' ';/* * */ ...

2018-07-23 23:27:13

阅读数:217

评论数:0

CSS 梯形页标签 实现(主要利用border属性)

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"&a...

2018-07-20 01:05:14

阅读数:168

评论数:0

zTree 模糊搜索

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"&a...

2018-07-19 23:55:57

阅读数:83

评论数:0

Java 树节点模糊查询

树节点类: package com.xiuye.util.tree; import java.util.List; public class TreeNode<T> { private T value; private T status; ...

2018-07-19 01:29:43

阅读数:240

评论数:0

Spring Boot 学习 @Transactional注解 事务生效了吗?一种查看方式(打印log)

1.首先,找到spring boot的默认的事务管理器,一般继承至于org.springframework.transaction.PlatformTransactionManager2.设置事务管理器打印log,应该包含开始事务,结束事务的输出日志.eg.我的工程包含JPA,MyBatis,在S...

2018-07-15 23:12:22

阅读数:663

评论数:0

Spring Boot 学习 基本配置能运行项目 (包含Servlet,Filter,Listener,JPA,MyBatis,Thymeleaf)

在spring官网上下载工程 : Spring Boot Project1.配置文件:application.properties#datasource spring.datasource.driverClassName=com.mysql.jdbc.Driver spring.datasourc...

2018-07-15 20:07:59

阅读数:48

评论数:0

Java 异步非阻塞代码能同步吗(能否锁住异步非阻塞代码块)?

验证不同步是否ThreadSafe:package com.xiuye.thread; public class NotSync { static volatile int i = 0; public void test() { System.out.println(&quo...

2018-05-08 20:32:07

阅读数:192

评论数:0

Spring configuration file : simple tag works simply

package com.xiuye.spring.tag; public class User { private String name; private String email; public String getName() { return name; } public...

2018-04-20 21:20:41

阅读数:48

评论数:0

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

<beans default-lazy-init="true" xmlns="http://www.springframework.org/schema/beans" xmlns:xsi=&qu...

2018-04-16 20:18:52

阅读数:34

评论数: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...

2018-04-15 19:25:41

阅读数:378

评论数: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...

2018-04-15 18:38:38

阅读数:63

评论数:0

Java NIO

package com.xiuye.nio; import java.io.IOException; import java.net.InetSocketAddress; import java.net.ServerSocket; import java.nio.ByteBuffer; impo...

2018-04-15 17:41:59

阅读数:34

评论数:0

嵌入式Tomcat简单地尝试下

package com.xiuye.server; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.se...

2018-04-14 21:43:20

阅读数:133

评论数: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...

2018-04-14 00:57:38

阅读数:150

评论数: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 ...

2018-04-13 23:09:36

阅读数:27

评论数:0

Java 对异步非阻塞的尝试

package com.xiuye.jdk.issue; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class CompletionThoughtTest...

2018-04-12 17:38:45

阅读数:48

评论数:0

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

import javax.annotation.processing.AbstractProcessor; import javax.annotation.processing.ProcessingEnvironment; import javax.annotation.processing.Ro...

2018-04-08 14:22:28

阅读数:56

评论数: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...

2018-04-05 16:55:31

阅读数:90

评论数: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...

2018-04-04 12:00:20

阅读数:166

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭