1 傲慢小胖妞

尚未进行身份认证

暂无相关简介

等级
TA的排名 13w+

java处理webSocekt无法使用@Resource或@Autowrite注入Service层

webSocket中//启动类注入setprivate static ApplicationContext applicationContext; public static void setApplicationContext(ApplicationContext context){ applicationContext = context; }@OnM...

2019-12-26 17:48:40

上传图片到本地服务器

配置文件:jeecg : path : #文件上传根目录 设置 upload: D://upFilescentroller:```java@Value(value = "${jeecg.path.upload}")private String uploadpath;@PostMapping(value = "/upload")public Result<...

2019-12-12 10:40:38

生成随机数最简单方式

导入maven<dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>4.5.11</version></dependency>调用方法,参数为要生成的长度S...

2019-11-08 15:45:54

md5加密

//生成MD5public static String getMD5(String message) {String md5 = “”;try {MessageDigest md = MessageDigest.getInstance(“MD5”); // 创建一个md5算法对象byte[] messageByte = message.getBytes(“UTF-8”);byte[]...

2019-09-23 10:59:04

java实现发送短信

package com.arvato.service.akc.api.config;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.net.HttpURLConnection;import java.net.URL;import j...

2019-09-06 16:35:59

搭建redis集群以及主从

Amore服务器软件安装信息软件信息 服务器IP 账号 密码 端口 备注软件安装信息Nginx 139.219.134.42/172.22.25.4 8060 1.13.8Redis 172.22.9.5/172.22.25.4 Qq11 8061 3.2.10Gitlab 172.22.9.4 root crm_amore 8060 Jdk 172.22.9.4/5 ...

2019-07-22 10:26:26

java实现日志操作记录

importcom.fasterxml.jackson.databind.ObjectMapper;importlombok.extern.slf4j.Slf4j;importorg.apache.commons.lang.StringUtils;importorg.aspectj.lang.ProceedingJoinPoint;importorg.aspectj.lang....

2019-07-09 09:19:16

获取小程序二维码

一、获取token值public static Map<String, Object> getToken() {Map<String, Object> data = new HashMap<String, Object>();try {StringBuilder urlSb = new StringBuilder();urlSb.append(“htt...

2019-06-26 16:26:36

上传MultipartFile格式文件限制文件大小

启动类注入Bean@Beanpublic MultipartConfigElement multipartConfigElement() {MultipartConfigFactory factory = new MultipartConfigFactory();//指定文件代销factory.setMaxFileSize(“5MB”);/// 设定上传文件大小factory.set...

2019-06-20 17:33:55

java生成小程序码

package com.arvato.service.goods.api.config;import net.sf.json.JSONObject;import org.junit.jupiter.api.Test;import java.io.*;import java.net.HttpURLConnection;import java.net.URL;import java.uti...

2019-06-06 10:11:32

AES加密

package com.arvato.utils.util;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import sun.misc.BASE64Decoder;import sun.misc.BASE64Encoder;import javax.crypto.Cipher;import javax.crypto.sp...

2019-05-18 10:33:12

linux安装rabbmitMQ

https://www.jianshu.com/p/1b8ffe3f1ebe

2019-04-23 14:57:46

centos上安裝jdk1.8、tomcat8、nginx、redi、mysql、rabbmitmq、zook、activeMQ

https://blog.csdn.net/yangliangliang2011/article/details/79590722

2019-04-19 16:00:36

Centos6.9安裝RabbitMQ

https://www.jianshu.com/p/1b8ffe3f1ebe

2019-04-19 14:43:34

navicat安装

navicat安装:https://blog.csdn.net/jsnhux/article/details/80921454

2019-04-11 14:58:16

HttpServletRequest 中 getRequestURL和getRequestURI的区别

比如说有这样的一个页面test1.jsp=======================<a href ="test.jsp?name=wf">跳转到test2.jsp</a>test2.jsp=======================HttpServletRequest req = (HttpServletRequest) request;HttpServl...

2019-03-22 18:17:31

java:生成随机数(字母加数字)

Random random = new Random();String val="";for ( int i = 0; i < 10; i++ ){String str = random.nextInt( 2 ) % 2 == 0 ? “num” : “char”;if ( “char”.equalsIgnoreCase( str ) ){ // 产生字母int nextInt...

2019-03-10 12:36:56

java获取客户端ip地址

if (httpservletrequest == null)return null;String ip = httpservletrequest.getHeader(“X-Forwarded-For”);if (ip == null || ip.length() == 0 || “unknown”.equalsIgnoreCase(ip))ip = httpservletrequest....

2019-02-27 16:08:43

jQuery jsonp跨域请求理解

https://blog.csdn.net/qq_39759115/article/details/82734459

2019-02-26 19:21:40

jquery生成二维码

导入JS文件<script src="/static/wap/js/qrcode.min.js"></script>直接引用new QRCode(document.getElementById("qrcode"), "www.baidu.com"); // 设置要生成二维码的链接

2019-02-22 15:22:36

查看更多

勋章 我的勋章
  • 签到新秀
    签到新秀
    累计签到获取,不积跬步,无以至千里,继续坚持!
  • 持之以恒
    持之以恒
    授予每个自然月内发布4篇或4篇以上原创或翻译IT博文的用户。不积跬步无以至千里,不积小流无以成江海,程序人生的精彩需要坚持不懈地积累!
  • 勤写标兵Lv1
    勤写标兵Lv1
    授予每个自然周发布1篇到3篇原创IT博文的用户。本勋章将于次周周三上午根据用户上周的博文发布情况由系统自动颁发。