随笔分类 - JAVA
摘要:提供海量学习视频教程,JAVA视频教程、安卓Android视频教程、IOS视频教程、Spring Boot/Spring Cloud学习视频教程、MySql视频教程、Redis、大数据、分布式,性能优化等视频教程下载,不断更新中资源价格参考下面的Execl价格清单,购买请联系客服QQ 7400799
阅读全文
摘要: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
阅读全文
摘要:package task.demo.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotati
阅读全文
摘要:package task.demo.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotati
阅读全文
摘要: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...
阅读全文
摘要:package com.example.redisdistlock.controller; import com.example.redisdistlock.util.RedisUtil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.co...
阅读全文
摘要:pom.xml文件配置
阅读全文
摘要: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...
阅读全文
摘要:package com.example.redisdistlock.util; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype....
阅读全文
摘要:package demo.dto; import org.hibernate.validator.constraints.Length; import javax.validation.constraints.NotEmpty; import java.io.Serializable; public class ProductDto implements Serializable { ...
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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) { ...
阅读全文
摘要: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
阅读全文
摘要: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(
阅读全文
摘要:import java.text.SimpleDateFormat; import java.util.Date; public class Test4 { public static void main(String[] args) { /** * Letter Date or Time Component Presentation Exam...
阅读全文
摘要:/* 集合框架的工具类。 Collections:集合框架的工具类。里面定义的都是静态方法。 Collections和Collection有什么区别? Collection是集合框架中的一个顶层接口,它里面定义了单列集合的共性方法。 它有两个常用的子接口, List:对元素都有定义索引。有序的。可以重复元素。 Set:不可以重复元素。无序。 Collections是集合框架中的一个工具类。该类中的
阅读全文
摘要:/* Map集合:该集合存储键值对。一对一对往里存。而且要保证键的唯一性。 Map |--Hashtable:底层是哈希表数据结构,不可以存入null键null值。该集合是线程同步的。效率低。基本已废弃 |--HashMap:底层是哈希表数据结构,允许使用 null 值和 null 键,该集合是不同步的。将hashtable替代,.效率高,不保证顺序。 |--TreeMap:底层是二叉树数...
阅读全文
摘要: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, "男")
阅读全文
摘要: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
阅读全文