background picture of the home page

Welcome to Leo's Blog

Vue-CLI(vue.config.js)详细配置

Vue-CLI(vue.config.js)详细配置Vue和Vue CLI的关系Vue和Vue CLI是密切相关的两个概念,它们分别代表了Vue.js框架和Vue.js脚手架工具。简单来说,Vue是一个前端JavaScript框架,而Vue CLI则是一个基于命令行的脚手架工具,用于快速搭建Vue项

thumbnail of the cover of the post

Java日期工具类-转换LocalDateTime为cron表达式

在日常开发过程中,可能涉及到定时任务相关的操作,这个时候可能会遇到将指定LocalDateTime时间转换成cron表达式的需求,这里写个工具类记录一下:package cc.leeleo.douyin.util;import java.time.LocalDateTime;import java.

thumbnail of the cover of the post

Linux指定jar包开机自启

前言通常我们在开发过程中,需要将开发好的服务程序,部署到服务器中,但是由于特殊原因(如断电,死机重启等…)我们需要在服务器开机后,重新执行指令来启动服务,在Linux服务器中,我们可以使用systemd来实现在Linux服务器中开机自启动server.jar包的功能,以下是具体的步骤:创建一个.se

thumbnail of the cover of the post

Spring AOP中ProceedingJoinPoint和JoinPoint的区别

ProceedingJoinPoint 和 JoinPoint 是 Spring 中 AOP 框架中两个常用的接口,它们的主要区别在于使用场景不同。JoinPoint 是 Spring AOP 中最常用的接口,它表示在程序执行过程中明确的点。这个接口提供了许多方法,可以访问到当前被拦截方法的信息。P

thumbnail of the cover of the post

SpringBoot中如何对添加了指定注解的方法进行拦截

在SpringBoot中,可以使用AOP(Aspect-Oriented Programming)来实现对指定注解的方法进行拦截。首先,需要在项目的配置文件中启用AOP支持,可以在启动类上添加@EnableAspectJAutoProxy注解。然后,可以创建一个Aspect类来实现对目标方法的拦截。

thumbnail of the cover of the post

Shell-read命令

read-获取用户输入Linux read命令用于从标准输入读取数值。read 内部命令被用来从标准输入读取单行数据。这个命令可以用来读取键盘输入,当使用重定向的时候,可以读取文件中的一行数据。语法read [-ers] [-a aname] [-d delim] [-i text] [-n nch

thumbnail of the cover of the post