会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
1点
博客园
首页
新随笔
联系
管理
上一页
1
···
16
17
18
19
20
21
22
23
24
···
77
下一页
2020年2月25日
Nginx日志切割 - 定时
摘要: 使用定时任务 1.安装定时任务: yum install crontabs 2.crontab -e 编辑并且添加一行新的任务: */1 * * * * /usr/1ocal/nginx/sbin/cut_my_log.sh 3.重启定时任务: service crond restart 常用定时任
阅读全文
posted @ 2020-02-25 20:50 1点
阅读(183)
评论(0)
推荐(0)
2020年2月23日
Linux 系统安装Nginx
摘要: 1.去官网下载对应的nginx 2.上传nginx 到linux xt 3.安装依赖环境 (1)安装gcc环境 yum install gcc-c++ (2)安装PCRE库,用于解析正则表达式 yum install -y pcre pcre-devel (3)zlib压缩和解压缩依赖, yum i
阅读全文
posted @ 2020-02-23 21:08 1点
阅读(553)
评论(0)
推荐(0)
2020年2月22日
spring boot Lombok使用方法
摘要: 1.在pom.xml 添加依赖 <!-- lombok 配置--> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </dependency> 2.使用 @Setter@Getter会
阅读全文
posted @ 2020-02-22 21:45 1点
阅读(288)
评论(0)
推荐(0)
spring boot 根据目录结构自动生成路由前缀
摘要: 1. .新建一个类 继承 RequestMappingHandlerMapping 重写 getMappingForMethod 方法 package com.boot.missyou.core.hack; import org.springframework.beans.factory.annot
阅读全文
posted @ 2020-02-22 17:13 1点
阅读(871)
评论(0)
推荐(0)
2020年2月19日
spring Boot 策略模式的几种实现方案
摘要: spring Boot 策略模式的几种实现方案 1.byname 切换bean 的名字 2.@Qualifier 指定Bean 3.有选择的只注入一个bean注释掉某个bean 上的 @Component 注解 4.使用@Primary
阅读全文
posted @ 2020-02-19 21:13 1点
阅读(903)
评论(0)
推荐(0)
注入
摘要: @Authowired 被动注入方式 bytype 默认的注入方式 两个同样类型的bean 注入 会报错 (1) 找不到任何一个bean 报错 (2)一个直接注入 (3)找到多个bean 并不一定报错 按照字段名字匹配 byname @Authowired 主动注入方式 @Qualifiler @C
阅读全文
posted @ 2020-02-19 20:59 1点
阅读(295)
评论(0)
推荐(0)
2020年2月13日
SpringBoot热重启配置
摘要: 1.添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> 不能被其它模块继承,如果多个
阅读全文
posted @ 2020-02-13 23:42 1点
阅读(803)
评论(0)
推荐(0)
2020年2月5日
centos7 安装 tomcat
摘要: 1.先上传tomcat 到指定目录 2.解压 tar -zxvf apache-tomcat-9.0.30.tar.gz 3.重新命名 mv apache-tomcat-9.0.30 tomcat-frontend 4.移动 tomcat-frontend 到 /usr/local/ mv tomc
阅读全文
posted @ 2020-02-05 13:12 1点
阅读(139)
评论(0)
推荐(0)
2020年2月3日
centos 安装jdk
摘要: 新建jdk安装目录 mkdir /usr/java 创建目录 /home/software 进去创建的目录 cd /home/software 使用ftp 上传压缩文件 : jdk-8u241-linux-x64.tar.gz 操作命令解压: tar -zxvf jdk-8u241-linux-x6
阅读全文
posted @ 2020-02-03 23:23 1点
阅读(185)
评论(0)
推荐(0)
2020年1月20日
spring boot (6) AOP的使用
摘要: 常用AOP通知(增强)类型 * 1. 前置通知:在方法调用之前执行 * 2. 后置通知:在方法正常调用之后执行 * 3. 环绕通知:在方法调用之前和之后,都分别可以执行的通知 * 4. 异常通知:如果在方法调用过程中发生异常,则通知 * 5. 最终通知:在方法调用之后执行 切面表达式: * exec
阅读全文
posted @ 2020-01-20 09:55 1点
阅读(207)
评论(0)
推荐(0)
上一页
1
···
16
17
18
19
20
21
22
23
24
···
77
下一页
公告