摘要: 方案一 application.properties配置: logging.level.com,后面的路径指的是mybatis对应的方法接口所在的包。并不是mapper.xml所在的包。 1. logging.level.com.example.demo.dao=debug 2. mybatis.c 阅读全文
posted @ 2020-05-23 22:54 andys 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 图片验证码,在spring security 学习(二)用户认证自定义上添加。 具体步骤相对来说简单分为三步:生成图片验证码、显示给用户输入,登陆认证中加入校验验证码; 添加验证依赖 定义图片对象ImageCode:属性有图片、验证码,过期时间 生成验证码图片输出到客户端,并保存到session 阅读全文
posted @ 2019-03-26 22:10 andys 阅读(193) 评论(0) 推荐(0) 编辑
摘要: spring security 学习(一)spring boot 中开启spring security 中介绍了spring boot开启security的简单实例 ,security会生成用户名和密码,项目开发中用户名和密码都是必须的,spring security 提供了自定义用户认证。 自定义 阅读全文
posted @ 2019-03-17 20:38 andys 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 简单来说,spring security提供Authentication认证和Authorization授权管理,其开发复杂度、学习难度都比shiro难,我们既然钟情与spring再难也要学习,搞一搞。 pom.xml 加入security maven 依赖 <dependency> <groupI 阅读全文
posted @ 2019-03-10 12:19 andys 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 单例模式,工厂模式、代理模式、模板模式等 1,单例模式(Singleton):bean可以体现出来,Spring下默认的bean均为singleton; 2,工厂模式:应用程序将对象的创建及初始化职责交给工厂对象,即DI; 3,代理模式:AOP,为其他对象提供代理可以访问 4,模板模式(Templa 阅读全文
posted @ 2019-03-10 11:22 andys 阅读(906) 评论(0) 推荐(0) 编辑
摘要: 我使用的是centos 7 64bit 1安装依赖软件 yum -y install policycoreutils openssh-server openssh-clients postfix 2设置postfix开机自启,并启动,postfix支持gitlab发信功能 systemctl ena 阅读全文
posted @ 2019-03-07 14:27 andys 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 简述: 在Servlet接口中的service(ServletRequest request , ServletResponse response)方法中有一个ServletRequest类型的参数。ServletRequest类表示来自客户端的请求。当Servlet容器接收到客户端要求访问特定Se 阅读全文
posted @ 2018-11-09 10:21 andys 阅读(3268) 评论(0) 推荐(0) 编辑
摘要: 1.安装前获取该用户的root权限 前提:当前的用户必须属于sudoer用户 sudo passwd 我创建的用户不在 sudoer 下提示:yyq 不在 sudoers 文件中。此事将被报告。 否则使用 su 加权限 输入当前用户密码 cd usr mkdir java 2.登录网址下载jdk: 阅读全文
posted @ 2018-10-30 19:33 andys 阅读(353) 评论(0) 推荐(0) 编辑
摘要: Spring cloud是基于spring boot,管理Spring boot 创建各个微服务应用,注册服务、服务发现 注册服务使用eureka 搭建eureka server 启动类加上@EnableEurekaServer application.yml registerWithEure、fetchRegistry设置为false 表明自己server端 server: port: ... 阅读全文
posted @ 2018-10-25 14:27 andys 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Spring Boot 是基于spring4整合开发包; spring boot 内嵌tomcat,Jetty和Undertow容器,可以直接运行起来,不在再做部署; spring boot 自动配置,减少了xml文件的大量配置; Spring MVC是基于 Servlet 的一个 MVC 框架 主 阅读全文
posted @ 2018-07-24 16:41 andys 阅读(1599) 评论(0) 推荐(0) 编辑