10 2018 档案
摘要:SSO-单点登录(1) package com.sxt.sso.commons; /** * 发送给客户端的数据对象。 * 商业开发中,一般除特殊请求外,大多数的响应数据都是一个统一类型的数据。 * 统一数据有统一的处理方式。便于开发和维护。 */ public class JWTResponseD
阅读全文
摘要:spring-注解 ext package com.zwj.ext; public class Blue { public Blue(){ System.out.println("blue...constructor"); } public void init(){ System.out.print
阅读全文
摘要:spring-注解 transaction package com.zwj.config; import java.beans.PropertyVetoException; import javax.sql.DataSource; import org.springframework.aop.asp
阅读全文
摘要:spring-注解 aop package com.zwj.aop; import java.util.Arrays; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.annotation.After; import org.as
阅读全文
摘要:spring-注解 autowired package com.zwj.bean; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Compone
阅读全文
摘要:spring- 注解 values package com.zwj.bean; import org.springframework.beans.factory.annotation.Value; public class Person { //使用@Value赋值; //1、基本数值 //2、可以
阅读全文
摘要:spring--注解 IOC(3) package com.zwj.bean; public class Blue { public Blue(){ System.out.println("blue...constructor"); } public void init(){ System.out.
阅读全文
摘要:spring-注解 IOC(2) package com.zwj.bean; import org.springframework.beans.factory.annotation.Value; public class Person { private String name; private I
阅读全文
摘要:(2) spring-注解 LifeCylce package com.zwj.bean; import org.springframework.stereotype.Component; @Component public class Car { public Car(){ System.out.
阅读全文
摘要:spring-注解 (1) -- include/exclude package com.zwj.bean; import org.springframework.stereotype.Component; @Component public class Car { public Car(){ Sy
阅读全文
摘要:Springboot--Mail package com.example.springbootmail.mail; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereo
阅读全文
摘要:Springboot--Async package com.example.springbootasync.Controller; /* 任务一开始执行 任务二开始执行 任务三开始执行 耗时135 耗时573 耗时7282 */ import com.example.springbootasync.
阅读全文
摘要:Springboot-- scheduled package com.bjsxt.scheduled; import java.util.Date; import org.springframework.scheduling.annotation.Scheduled; import org.spri
阅读全文
摘要:Springboot--Jpa dao package com.bjsxt.dao; import org.springframework.data.jpa.repository.JpaRepository; import com.bjsxt.pojo.Roles; /** * RolesRepos
阅读全文
摘要:Springboot --redis package com.bjsxt.config; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.co
阅读全文
摘要:Springboot--Ehcache-jpa package com.bjsxt.dao; import org.springframework.data.jpa.repository.JpaRepository; import com.bjsxt.pojo.Users; /** * 参数一 T
阅读全文
摘要:Springboot--Junit package com.bjsxt.dao; import org.springframework.stereotype.Repository; @Repository public class UserDaoImpl { public void saveUser
阅读全文
摘要:Springboot--Exception 自定义异常类 package com.bjsxt.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annot
阅读全文
摘要:Springboot-Mybatis package com.bjsxt.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.spri
阅读全文
摘要:Springboot-Freemarker package com.bjsxt.controller; import java.util.ArrayList; import java.util.List; import org.springframework.stereotype.Controlle
阅读全文
摘要:springboot-FIleupload package com.bjsxt.controller; import java.io.File; import java.util.HashMap; import java.util.Map; import javax.servlet.http.Htt
阅读全文
摘要:Springboot-Static-Resource package com.bjsxt.app; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.Spr
阅读全文
摘要:springboot-Listener package com.bjsxt.listener; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import javax.se
阅读全文
摘要:springboot --servlet --filter package com.bjsxt.filter; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; imp
阅读全文
摘要:multipartmultipart.enabled 开启上传支持(默认:true) multipart.file-size-threshold: 大于该值的文件会被写到磁盘上 multipart.location 上传文件存放位置 multipart.max-file-size最大文件大小 mul
阅读全文