06 2020 档案
摘要:1. Shiro框架简介 Apache Shiro是一个强大且易用的Java安全框架,执行身份验证、授权、密码学和会话管理。使用Shiro的易于理解的API,您可以快速、轻松地获得任何应用程序,从最小的移动应用程序到最大的网络和企业应用程序。 1、 Authentication 认证 用户登录 2、
阅读全文
摘要:1.pom.xml <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> </dependency>
阅读全文
摘要:1.pom.xml <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-config</artifactId> </dependency> <dependency> <g
阅读全文
摘要:1.pom.xml <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId> </dependency>
阅读全文
摘要:简介 Spring提供了一系列工具,可以帮助开发人员迅速搭建分布式系统中的公共组件(比如:配置管理,服务发现,断路器,智能路由,微代理,控制总线,一次性令牌,全局锁,主节点选举, 分布式session, 集群状态)。协调分布式环境中各个系统,为各类服务提供模板性配置。使用Spring Cloud,
阅读全文
摘要:添加jar包依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-activemq</artifactId> </dependency> <!--消息队列连接池--> <
阅读全文
摘要:添加jar包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 添加application.pr
阅读全文
摘要:$('#editMark').linkbutton({"disabled":false}); $('#submitSP').linkbutton({"disabled":false}); $('#addMark').linkbutton({"disabled":false}); $('#delete
阅读全文
摘要:在class属性中加入一下两个值readonly-style-ignoredisabled-style-ignore
阅读全文
摘要:使用Java程序从数据库中查询大量的数据时出现异常:java.lang.OutOfMemoryError: Java heap space在JVM中如果98%的时间是用于GC且可用的 Heap size 不足2%的时候将抛出此异常信息。JVM堆的设置是指java程序运行过程中JVM可以调配使用的内存
阅读全文
摘要:redis基本命令 select命令切换数据库 dbsize查看当前数据库的key的数量 flushdb:清空当前库 Flushall;通杀全部库 redis五大数据类型 1.String(字符串) string是redis最基本的类型,你可以理解成与Memcached一模一样的类型,一个key对应
阅读全文
摘要:1.activiti中的25张表 部署流程相关表 SELECT * FROM act_re_deployment #部署对象表 select* from act_re_procdef #流程定义表 select * from act_ge_bytearray #资源文件表 select * from
阅读全文
摘要:package Demo; /** * @Author:胡琪 * @Description: * @Date: created in 15:31 2019/6/12 */ public class SnowflakeIdUtils { // Fields /** 开始时间截 (2015-01-01)
阅读全文
摘要:1.导入jar包 <!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core --> <dependency> <groupId>org.apache.logging.log4j</groupId> <art
阅读全文
摘要:1.导入jar包 <!--排除自带的logback的依赖jar包,log4j2与logback的jar有冲突 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</a
阅读全文
摘要:1.导入jar包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-logging</artifactId> </dependency> 2.创建logback-sprin
阅读全文
摘要:1.添加配置类 package org.jcut.tools; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; import org
阅读全文
摘要:1.创建监听器类 package org.jcut.config; import javax.servlet.annotation.WebListener; import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.H
阅读全文
摘要:1.创建拦截器类 import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.HandlerInterceptor; import javax.servlet.
阅读全文
摘要:1.在springMvc的xml配置文件中加入开启aop和扫描aop的配置 <!-- 将类加入IOC容器 --> <context:component-scan base-package="com.huqi.aop"></context:component-scan> <!-- 开启aop注解 --
阅读全文