会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
南方小袁
也许我没有天分,但我有梦的天真。也许我手比较笨,但我愿不停探寻,付出而不留遗憾。
博客园
首页
新随笔
联系
订阅
管理
2020年5月23日
spring boot如何打印mybatis的执行sql
摘要: 方案一 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
阅读(354)
评论(0)
推荐(0)
2019年3月26日
spring security学习 (三)图片验证码认证
摘要: 图片验证码,在spring security 学习(二)用户认证自定义上添加。 具体步骤相对来说简单分为三步:生成图片验证码、显示给用户输入,登陆认证中加入校验验证码; 添加验证依赖 定义图片对象ImageCode:属性有图片、验证码,过期时间 生成验证码图片输出到客户端,并保存到session
阅读全文
posted @ 2019-03-26 22:10 andys
阅读(228)
评论(0)
推荐(0)
2019年3月17日
spring security 学习(二)用户认证自定义
摘要: spring security 学习(一)spring boot 中开启spring security 中介绍了spring boot开启security的简单实例 ,security会生成用户名和密码,项目开发中用户名和密码都是必须的,spring security 提供了自定义用户认证。 自定义
阅读全文
posted @ 2019-03-17 20:38 andys
阅读(471)
评论(0)
推荐(0)
2019年3月10日
spring security 学习(一)spring boot 中开启spring security
摘要: 简单来说,spring security提供Authentication认证和Authorization授权管理,其开发复杂度、学习难度都比shiro难,我们既然钟情与spring再难也要学习,搞一搞。 pom.xml 加入security maven 依赖 <dependency> <groupI
阅读全文
posted @ 2019-03-10 12:19 andys
阅读(241)
评论(0)
推荐(0)
spring 用了那些设计模式?
摘要: 单例模式,工厂模式、代理模式、模板模式等 1,单例模式(Singleton):bean可以体现出来,Spring下默认的bean均为singleton; 2,工厂模式:应用程序将对象的创建及初始化职责交给工厂对象,即DI; 3,代理模式:AOP,为其他对象提供代理可以访问 4,模板模式(Templa
阅读全文
posted @ 2019-03-10 11:22 andys
阅读(909)
评论(0)
推荐(0)
2019年3月7日
liunx系统上安装gitlab
摘要: 我使用的是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
阅读(363)
评论(0)
推荐(0)
2018年11月9日
ServletRequest接口和HttpServletRequest接口
摘要: 简述: 在Servlet接口中的service(ServletRequest request , ServletResponse response)方法中有一个ServletRequest类型的参数。ServletRequest类表示来自客户端的请求。当Servlet容器接收到客户端要求访问特定Se
阅读全文
posted @ 2018-11-09 10:21 andys
阅读(3306)
评论(0)
推荐(0)
2018年10月30日
Linux系统下安装jdk8
摘要: 1.安装前获取该用户的root权限 前提:当前的用户必须属于sudoer用户 sudo passwd 我创建的用户不在 sudoer 下提示:yyq 不在 sudoers 文件中。此事将被报告。 否则使用 su 加权限 输入当前用户密码 cd usr mkdir java 2.登录网址下载jdk:
阅读全文
posted @ 2018-10-30 19:33 andys
阅读(372)
评论(0)
推荐(0)
2018年10月25日
Spring cloud 基础
摘要: 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
阅读(128)
评论(0)
推荐(0)
2018年7月24日
Spring Boot与SpringMVC的区别
摘要: Spring Boot 是基于spring4整合开发包; spring boot 内嵌tomcat,Jetty和Undertow容器,可以直接运行起来,不在再做部署; spring boot 自动配置,减少了xml文件的大量配置; Spring MVC是基于 Servlet 的一个 MVC 框架 主
阅读全文
posted @ 2018-07-24 16:41 andys
阅读(1611)
评论(0)
推荐(0)
下一页
公告