自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

庄稼汉的博客

撸起袖子敲代码

  • 博客(29)
  • 收藏
  • 关注

原创 SpringBoot 项目@Aspect注解不可用

在SpringBoot项目中AOP编程,@Aspect注解不可用,pom.xml文件中需要引入依赖<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-aop --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boo

2021-02-05 22:55:06 672

原创 SpringBoot 项目启动失败

SpringBoot 项目启动报错,如下图: . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|========.

2021-02-05 22:31:38 7577 3

原创 mysql 比较两个值

mysql 比较两个值获取最大值mysql 比较两个值获取最小值

2020-12-01 16:31:28 2742

原创 idea 中热部署Devtools

1.Adding devtools to your project<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</opt

2020-10-11 17:51:11 138

原创 MySQL 修改递增的起始值

alter table table_name auto_increment=1; (如果其他起始值改为别的即可)

2020-08-20 16:08:53 723

原创 CAS client 登录认证 报不允许使用CAS来认证您访问的目标应用。

CAS client 登录认证 报不允许使用CAS来认证您访问的目标应用。、、解决方案: 修改src/main/resources/services目录下的HTTPSandIMAPS-10000001.json文件内容

2020-06-06 16:09:23 26433 6

原创 CAS Client AuthenticationFilter解析流程图

2020-06-06 12:31:00 426

原创 CAS 支持https协议

参考:https://www.jianshu.com/p/4d4b6b5a17b51、在C:\Windows\System32\drivers\etc\hosts文件中配置虚拟域名2、生成密钥-genkeypair 生成密钥-keyalg 指定密钥算法,这时指定RSA,-keysize 指定密钥长度,默认是1024位,这里指定2048,长一点,我让你破解不了(哈哈…),-siglag 指定数字签名算法,这里指定为SHA1withRSA算法-validity 指定证书有效期,这里指.

2020-06-06 00:40:57 1457

原创 SpringBoot 搭建CAS服务端5.3

参考https://blog.csdn.net/zhouzhiwengang/article/details/89874553 https://www.jianshu.com/p/1e46435ffafaGithub 下载CAS5.3 服务端版本:https://github.com/apereo/cas-overlay-template/tree/5.31、解压下载的cas5.3.zip文件包,切换至cas5.3解压文件目录,执行maven 打包命令:mvn package2、执...

2020-06-05 23:14:56 1592

原创 javaweb 项目中 xml配置文件中的一些特殊符号的处理

参考https://www.jianshu.com/p/b5c76a2c1d3d

2020-06-03 17:26:05 470

原创 SpringBoot + Mybatis +generator 操作步骤

1. 创建SpringBoot 项目添加mybatis、durid、mysql依赖及generator 插件<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/P

2020-05-30 20:40:52 378

原创 SpringBoot 关于静态资源访问的配置

1、静态资源访问是指系统可以直接访问的url路径2、在Springboot中默认的静态资源路径有:classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/可以在application.properties配置文件中自定义:#静态资源路径配置spring.mvc.static-path-pattern=/**spring.resources.static-locatio

2020-05-30 20:22:04 785

原创 SpringBoot 2.0 WebMvcConfigureAdater过时

针对SpringBoot 2.0+版本 继承 WebMvcConfigurerAdapter 提示过时。解决方案:1. implements WebMvcConfigurer(官方推荐)2.直接继承WebMvcConfigurationSupport

2020-05-30 20:06:20 191

原创 Spring Boot 报错:Web server failed to start. Port 8080 was already in use.

1. 查看端口是否占用:2. 杀死进程

2020-05-30 12:41:55 2651

原创 Spring-Security简介

官网地址:https://spring.io/projects/spring-security官网描述:Spring Security is a powerful and highly customizable authentication and access-control framework. It is the de-facto standard for securing Spring-based applications.Spring Security is a framewor.

2020-05-24 10:52:12 177

原创 SpringBoot 使用FreeMarker根据模板生成word文件

1. pom文件中引入FreeMarker依赖<!-- freemarker jar --><dependency> <groupId>org.freemarker</groupId> <artifactId>freemarker</artifactId> <version>2.3.20</version></dependency>2. 使用word 创建模板文档如图.

2020-05-20 23:21:01 865

原创 Lambda表达式实现函数式接口

Lambda表达式实现函数式接口与传统实现方式:(函数式接口就是一个有且仅有一个抽象方法,但是可以有多个非抽象方法的接口。)public class LambdaDemo { public static void main( String[] args ) { LambdaDemo lambdaDemo = new LambdaDemo(); String something = "传统接口实现方式!"; Printer printer...

2020-05-19 21:42:50 814

原创 idea 与eclipse 常见快捷键的不同

1. idea 中 System.out.println() 对应的快捷键为 sout(); eclipse 中System.out.println() 对应的快捷键为 syso();2. idea 中 public static void main(String[] args) 对应的快捷键为 psvm; eclipse 中public static void main(String[] args) 对应的快捷键为 main;...

2020-05-18 23:20:26 217

原创 2019 版idea设置字体大小

1. 点击File->Setting2. 点击Editor->Font

2020-05-18 23:17:53 3016 1

原创 Spring Boot: No identifier specified for entity XXX报错解决办法

原因是该实体类没有增加主键生成策略。@Id@GenericGenerator(name = "system_uuid",strategy="uuid")@GeneratedValue(generator = "system_uuid")@ApiModelProperty(value = "uuid")@Column(name = "uuid",columnDefinition = "varchar(64)")

2020-05-17 17:45:26 220

原创 SpringBoot集成Swagger操作

1. pom文件中引用Swagger依赖<dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.6.1</version></dependency><dependency> <groupId>io.springfox</g

2020-05-17 17:21:46 178

原创 maven 修改setting.xml文件,配置镜像

<mirror> <id>alimaven</id> <mirrorOf>central</mirrorOf> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> </mirror>

2020-05-16 00:32:51 1551

原创 IDEA 中自动导入包的快捷键设置

IDEA开发工具默认导入包的快捷键为Alt+enter; 可以设置自动导入包,截图如下:

2020-05-16 00:19:34 9746

原创 Idea 在线安装Lombok插件,plugins Marketplace刷新失败

根据网上的资料1. 查看防火墙是否关闭,未解决2.Setting配置中代理设置完重启IDEA,未解决3. Setting配置中取消安全连接重启IDEA,未解决4. 从官网中https://plugins.jetbrains.com/?search=lombok下载Lombok插件(网址打开较慢),离线安装,成功解决。注意Lombok版本下载要与IDEA版本一致。...

2020-05-16 00:14:47 702

原创 SpringBoot集成JPA,逆向生成Entity的操作

1. 选择菜单View->Tool Windows->Database 功能2.

2020-05-14 08:54:06 1027

原创 Spring Boot 启动:No active profile set, falling back to default profiles: default

SpringBoot项目启动失败,截图如下:解决方案:在pom.xml文件增加如下依赖

2020-05-13 22:08:57 790

原创 Mysql创建表的语句

语法:CREATE TABLE table_name (column_name column_type [NOT NULL] [AUTO_INCREMENT]...primary key (column_name))ENGINE=InnoDB DEFAULT CHARSET=utf8;column_name:字段名称column_type:数据类型NOT NULL:是否允许为NULLAUTO_INCREMENT:递增PRIMARY KEY :用于定义列为主键ENGIN.

2020-05-10 12:37:16 777

原创 远程连接不上mysql,ping 可以通,telnet不通。

注意3306端口配置的顺序即可。问题解决前/etc/sysconfig/iptables配置如下:问题解决后/etc/sysconfig/iptables配置如下:

2020-05-09 11:34:57 4038 1

原创 win10 系统'telnet' 不是内部或外部命令,也不是可运行的程序

1. 找到电脑控制面板2. 点击程序和功能3. 点击启动或关闭window功能4. 选中复选框Telnet Client 并点击确定即可

2020-05-08 15:25:33 249

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除