随笔分类 -  JAVA

摘要:提供海量学习视频教程,JAVA视频教程、安卓Android视频教程、IOS视频教程、Spring Boot/Spring Cloud学习视频教程、MySql视频教程、Redis、大数据、分布式,性能优化等视频教程下载,不断更新中资源价格参考下面的Execl价格清单,购买请联系客服QQ 7400799 阅读全文
posted @ 2021-09-23 10:09 深南大道 编辑
摘要: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) 编辑
摘要: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) 编辑
摘要:import java.util.ArrayList; import java.util.Iterator; public class StringSampleDemo { public static void main(String[] args) { ArrayList al = new ArrayList(); al.add(new Student("zhangsan1", 20, "男") 阅读全文
posted @ 2019-09-30 15:38 深南大道 阅读(1940) 评论(0) 推荐(0) 编辑
摘要:import java.util.ArrayList; import java.util.Iterator; public class StringSampleDemo { public static void main(String[] args) { ArrayList al = new ArrayList(); al.add("1"); al.add("2"); al.add("3"); a 阅读全文
posted @ 2019-09-30 13:34 深南大道 阅读(991) 评论(0) 推荐(0) 编辑

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