文章分类 -  Java 那些事儿

摘要:package com.nosya; import cn.smallbun.screw.core.Configuration; import cn.smallbun.screw.core.engine.EngineConfig; import cn.smallbun.screw.core.engin 阅读全文
posted @ 2023-02-06 14:59 都是城市惹的祸 阅读(44) 评论(0) 推荐(0)
摘要:1、创建天气处理类 package com.nosya; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; 阅读全文
posted @ 2023-02-06 14:56 都是城市惹的祸 阅读(165) 评论(0) 推荐(0)
摘要:1、pom文件 <dependency> <groupId>org.java-websocket</groupId> <artifactId>Java-WebSocket</artifactId> <version>1.3.5</version> </dependency> 2、创建Websocke 阅读全文
posted @ 2023-02-06 14:52 都是城市惹的祸 阅读(253) 评论(0) 推荐(0)
摘要:import com.rabbitmq.client.AMQP; import com.rabbitmq.client.Channel; import com.rabbitmq.client.DefaultConsumer; import com.rabbitmq.client.Envelope; 阅读全文
posted @ 2021-02-25 16:55 都是城市惹的祸 阅读(159) 评论(0) 推荐(0)
摘要:import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; import java.io.IOException; import java.util.concurrent.TimeoutException; p 阅读全文
posted @ 2021-02-25 16:52 都是城市惹的祸 阅读(130) 评论(0) 推荐(0)
摘要:import com.rabbitmq.client.Connection; import com.rabbitmq.client.ConnectionFactory; import java.util.logging.Logger; public class RabbitMqUtil { priv 阅读全文
posted @ 2021-02-25 16:51 都是城市惹的祸 阅读(167) 评论(0) 推荐(0)
摘要:import java.beans.PropertyVetoException; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQL 阅读全文
posted @ 2021-02-25 16:44 都是城市惹的祸 阅读(59) 评论(0) 推荐(0)
摘要:package com.abc.helper; /** * Created by xxx. */ import com.alibaba.fastjson.JSONArray; import org.slf4j.Logger; import org.slf4j.LoggerFactory; impor 阅读全文
posted @ 2020-11-17 11:32 都是城市惹的祸 阅读(125) 评论(0) 推荐(0)
摘要:package com.abc.helper; import org.apache.tomcat.util.codec.binary.Base64; import sun.misc.BASE64Decoder; import sun.misc.BASE64Encoder; import javax. 阅读全文
posted @ 2020-11-17 11:30 都是城市惹的祸 阅读(74) 评论(0) 推荐(0)
摘要:package com.abc.helper; import com.abc.model.IntegerList; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetA 阅读全文
posted @ 2020-11-17 11:29 都是城市惹的祸 阅读(63) 评论(0) 推荐(0)
摘要:package com.abc.helper; /** * Created by xxx. */ import com.abc.model.Enums; import org.apache.commons.codec.binary.Base64; import org.apache.http.Htt 阅读全文
posted @ 2020-11-17 11:27 都是城市惹的祸 阅读(49) 评论(0) 推荐(0)
摘要:消费者: package com.abc.kafka; /** * Created by xxx. */ import java.util.Collections; import java.util.Properties; import org.apache.kafka.clients.consum 阅读全文
posted @ 2020-11-17 11:26 都是城市惹的祸 阅读(67) 评论(0) 推荐(0)
摘要:package com.abc.model; import java.util.ArrayList; import java.util.List; /** * Created by xxx. */ public class IntegerList { private List list = new 阅读全文
posted @ 2020-11-17 11:23 都是城市惹的祸 阅读(81) 评论(0) 推荐(0)
摘要:package com.abc.util; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Created by xxx. */ public class YxUnicodeUtil { private st 阅读全文
posted @ 2020-11-17 11:22 都是城市惹的祸 阅读(67) 评论(0) 推荐(0)
摘要:package com.abc.util; import java.text.SimpleDateFormat; import java.util.*; /** * Created by xxx. */ public class YxIdCardUtil { private static YxIdC 阅读全文
posted @ 2020-11-17 11:21 都是城市惹的祸 阅读(66) 评论(0) 推荐(0)
摘要:package com.abc.util; /** * DES加密 解密算法 * Created by xxx. */ import org.apache.commons.codec.binary.Base64; import javax.crypto.Cipher; import javax.cr 阅读全文
posted @ 2020-11-17 11:19 都是城市惹的祸 阅读(53) 评论(0) 推荐(0)
摘要:package com.abc.util; import org.apache.commons.lang3.StringUtils; import org.apache.commons.net.util.Base64; import java.io.UnsupportedEncodingExcept 阅读全文
posted @ 2020-11-17 11:17 都是城市惹的祸 阅读(88) 评论(0) 推荐(0)
摘要:package com.abc.util; /** * Created by xxx. */ import javax.crypto.Cipher; import javax.crypto.spec.SecretKeySpec; public class YxAESUtil { private fi 阅读全文
posted @ 2020-11-17 11:00 都是城市惹的祸 阅读(69) 评论(0) 推荐(0)
摘要:package com.abc.util; import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; /** * Created by 阅读全文
posted @ 2020-11-17 10:59 都是城市惹的祸 阅读(87) 评论(0) 推荐(0)
摘要:/** * Created by xxx. * 代码自动生成后,有几个地方需要修改: * 1、控制器的@Controller改为@RestController,否则无法直接将类传回 * 2、model的字段需要添加@TableField说明,因为有些字段是关键字。另外,日期型字段需要改为String 阅读全文
posted @ 2020-11-17 10:57 都是城市惹的祸 阅读(575) 评论(2) 推荐(0)