10 2019 档案

摘要:System.Diagnostics.Debug.WriteLine(format, args); 阅读全文
posted @ 2019-10-28 10:33 深南大道 阅读(9359) 评论(0) 推荐(1) 编辑
摘要:/// /// 将 Stream 转成 byte[] /// /// /// public static byte[] StreamToBytes(Stream stream) { byte[] bytes = new byte[stream.Length]; stream.Read(bytes, 0, bytes.Length); // 设置当前流的位置为流的... 阅读全文
posted @ 2019-10-23 09:50 深南大道 阅读(499) 评论(0) 推荐(1) 编辑
摘要:/// <summary> /// 读取配置文件信息 /// </summary> public class ConfigExtensions { public static IConfiguration Configuration { get; set; } static ConfigExtensions() { Configuration = new ConfigurationBuilder( 阅读全文
posted @ 2019-10-22 18:19 深南大道 阅读(704) 评论(0) 推荐(0) 编辑
摘要:package mail.demo; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; i 阅读全文
posted @ 2019-10-09 15:23 深南大道 阅读(2302) 评论(0) 推荐(0) 编辑
摘要:package task.demo.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotati 阅读全文
posted @ 2019-10-09 14:45 深南大道 阅读(622) 评论(0) 推荐(0) 编辑
摘要:package task.demo.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotati 阅读全文
posted @ 2019-10-09 14:29 深南大道 阅读(1385) 评论(0) 推荐(0) 编辑
摘要:package rabbitmq.demo; import com.rabbitmq.client.AMQP; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.amqp.core.AmqpAdmin; import org.springframework.amqp.core.B... 阅读全文
posted @ 2019-10-09 11:35 深南大道 阅读(3450) 评论(0) 推荐(0) 编辑
摘要:package com.example.redisdistlock.controller; import com.example.redisdistlock.util.RedisUtil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.co... 阅读全文
posted @ 2019-10-08 17:25 深南大道 阅读(1424) 评论(0) 推荐(0) 编辑
摘要:pom.xml文件配置 阅读全文
posted @ 2019-10-08 15:23 深南大道 阅读(1563) 评论(0) 推荐(0) 编辑
摘要:--新建存储过程 create procedure doinsert3() begin declare i int; declare j int; set i = 0; set j = 0; while(i<=200) do insert into reader_info(name,sex,birth,address,telcode) values(concat('测试',i),'男','1... 阅读全文
posted @ 2019-10-08 12:53 深南大道 阅读(353) 评论(0) 推荐(0) 编辑
摘要:package com.example.redis.controller; import com.example.redis.entity.User; import com.example.redis.util.JedisUtil; import com.example.redis.util.RedisUtil; import org.springframework.beans.factory... 阅读全文
posted @ 2019-10-08 10:15 深南大道 阅读(8537) 评论(1) 推荐(0) 编辑
摘要:package com.example.redisdistlock.util; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.... 阅读全文
posted @ 2019-10-08 10:07 深南大道 阅读(11243) 评论(0) 推荐(0) 编辑
摘要:package demo.dto; import org.hibernate.validator.constraints.Length; import javax.validation.constraints.NotEmpty; import java.io.Serializable; public class ProductDto implements Serializable { ... 阅读全文
posted @ 2019-10-05 21:36 深南大道 阅读(6627) 评论(0) 推荐(0) 编辑
摘要:package demo.utils; import com.alibaba.fastjson.JSON; import demo.controller.ProductController; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.springfra 阅读全文
posted @ 2019-10-05 21:15 深南大道 阅读(1079) 评论(0) 推荐(0) 编辑
摘要:import java.io.IOException; import java.io.PipedInputStream; import java.io.PipedOutputStream; public class Test4 { public static void main(String[] args) { PipedInputStream pin = new PipedInputStream 阅读全文
posted @ 2019-10-02 19:22 深南大道 阅读(255) 评论(0) 推荐(0) 编辑
摘要:import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.InputStream; import java.io.InputStreamReader; public class Test4 { public static void main(String[] args) { ... 阅读全文
posted @ 2019-10-02 14:09 深南大道 阅读(11027) 评论(0) 推荐(0) 编辑
摘要:import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; public class Test4 { public static void main(String[] args) { FileUtil f = new FileUtil(); System.out.println(f.re 阅读全文
posted @ 2019-10-02 13:31 深南大道 阅读(1993) 评论(0) 推荐(0) 编辑
摘要:import java.text.SimpleDateFormat; import java.util.Date; public class Test4 { public static void main(String[] args) { /** *Math.sqrt()//计算平方根 *Math.cbrt()//计算立方根 *Math.pow(a, b)//计算a的b次方 *Math.max( 阅读全文
posted @ 2019-10-02 13:19 深南大道 阅读(2468) 评论(0) 推荐(0) 编辑
摘要:import java.text.SimpleDateFormat; import java.util.Date; public class Test4 { public static void main(String[] args) { /** * Letter Date or Time Component Presentation Exam... 阅读全文
posted @ 2019-10-02 12:49 深南大道 阅读(324) 评论(0) 推荐(0) 编辑
摘要:/* 集合框架的工具类。 Collections:集合框架的工具类。里面定义的都是静态方法。 Collections和Collection有什么区别? Collection是集合框架中的一个顶层接口,它里面定义了单列集合的共性方法。 它有两个常用的子接口, List:对元素都有定义索引。有序的。可以重复元素。 Set:不可以重复元素。无序。 Collections是集合框架中的一个工具类。该类中的 阅读全文
posted @ 2019-10-01 21:25 深南大道 阅读(7897) 评论(0) 推荐(0) 编辑
摘要:/* Map集合:该集合存储键值对。一对一对往里存。而且要保证键的唯一性。 Map |--Hashtable:底层是哈希表数据结构,不可以存入null键null值。该集合是线程同步的。效率低。基本已废弃 |--HashMap:底层是哈希表数据结构,允许使用 null 值和 null 键,该集合是不同步的。将hashtable替代,.效率高,不保证顺序。 |--TreeMap:底层是二叉树数... 阅读全文
posted @ 2019-10-01 21:01 深南大道 阅读(359) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示