
SpringBoot
正在学以致用的路途中
yongqi_wang
少点悲伤,多点微笑。少些埋怨,多些鼓励。
展开
-
SpringBoot banner图样
1.在resources下创建一个txt文件,例 :banner.txt在application.yml里添加配置spring: banner: charset: UTF-8 location: classpath:banner.txt以下为图样目录卡通中文手势武器卡通 ;!;, ...原创 2020-01-21 18:10:52 · 547 阅读 · 0 评论 -
SpringBoot配置拦截器
1.编写登录拦截器package com.xxx.interceptor;import org.springframework.stereotype.Component;import org.springframework.web.servlet.HandlerInterceptor;import org.springframework.web.servlet.ModelAndVie...原创 2020-01-21 17:00:28 · 1039 阅读 · 0 评论 -
SpringBoot配置HTTPS
1.生成HTTPS证书打开cmd执行命令-alias设置别名-storetype设置证书格式-keyalg设置加密算法-keysize设置证书大小-keystore设置证书文件地址-validity设置有效天数。keytool -genkey -alias tomcat -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore ke...原创 2020-01-21 16:51:24 · 2023 阅读 · 0 评论 -
Maven项目配置SpringBoot
1.在pom.xml中添加SpringBoot相关依赖,如果原来已经是spring项目的话那么需要删除之前所有的org.springframework相关依赖,防止jar包冲突<properties> <springboot.version>2.0.7.RELEASE</springboot.version> </proper...原创 2020-01-15 15:56:36 · 2160 阅读 · 0 评论