原创 Spring Secuity學習記錄

WebSecurityConfigurerAdapter:自定義Security策略 AuthenticationManagerBuilder:自定義認證策略 @EnableWebSecurity:開啓WebSecuity模式 Spri

原创 linux上安裝OpenResty(Nginx)

1. 安裝依賴 yum install pcre-devel openssl-devel gcc curl postgresql-devel 2. 下載解壓 #下載 wget -c https://openresty.org/down

原创 java.lang.ClassNotFoundException:com.sun.xml.bind.v2.model.annotation.AnnotationReader

我在使用阿里雲oss的時候遇到了這個bug  阿里雲說他那邊測試沒問題 我這邊已調用就出問題 這是解決方案 具體原因不是很明確 如果有大佬知道 請多多指點 <!-- https://mvnrepository.com/artifac

原创 OSS工具類

import com.aliyun.oss.*; import com.aliyun.oss.model.GeneratePresignedUrlRequest; import com.aliyun.oss.model.PutObjec

原创 SMS工具類

import com.alibaba.fastjson.JSONObject; import com.aliyun.oss.ClientException; import com.aliyuncs.CommonRequest; impo

原创 ResultUtils工具類

import org.slf4j.Logger; import java.io.Serializable; public class ResultUtils<T> implements Serializable { pri

原创 vue.js一些自己用的命令

//本地測試運行 npm run dev //線上版本打包 npm run build:prod --report //我這邊是放在nginx裏面部署的 nginx目錄 /usr/local/webserver/nginx/html

原创 Strings工具類

import org.apache.commons.lang3.StringUtils; import org.apache.poi.ss.formula.functions.T; import org.slf4j.Logger; im

原创 SpringBoot搭建以一些配置與註解

 註解 @RequestMapping("/user")   用於127.0.0.1:8080/user @RequestBody       返回數據json @Controller 用於標註控制端 @PathVariab

原创 OS工具類

public class OsUtils { /** * 判斷當前系統是否是Windows * 是返回true * @return */ public static boolean

原创 UploadUtils 工具類

import org.apache.commons.io.IOUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframew

原创 ValidationUtils 工具類

import java.util.regex.Matcher; import java.util.regex.Pattern; public class ValidationUtils { //手機號 public

原创 RedisUtils 工具類

import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.BoundListOpe

原创 vue.js入門demo

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Vue的第一個入門案例</title> </head> <body> <div

原创 騰訊地圖Demo

騰訊API地址:https://lbs.qq.com/javascript_v2/guide-control.html  第二個地圖.html+map.js +jquery-3.3.1.min.js 主要功能 1:支持搜索定位 2:定位