摘要: 创建Spring项目 IDEA打开New Project-Maven Archetype,选择Archetype:org.apache.maven.archetypes:maven-archetype-quickstart IDEA更换国内源,Maven可以配置aliyun镜像(这里略) 添加 Sp 阅读全文
posted @ 2024-07-09 11:27 Andy_lu020 阅读(269) 评论(0) 推荐(1) 编辑
摘要: 需要安装Tree for Windows工具 打开进入 Tree for Windows 页面,选择下载 Binaries zip 文件。 解压压缩包,找到压缩包内的 bin 目录,可以看到 tree.exe 工具。 打开需要导出的目录,在当前目录执行cmd命令,命令如C:\Users\***\Do 阅读全文
posted @ 2025-01-08 11:38 Andy_lu020 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 官方文档 What is Apache Shiro? Apache Shiro is a powerful and easy to use Java security framework that offers developers an intuitive yet comprehensive so 阅读全文
posted @ 2024-07-19 16:18 Andy_lu020 阅读(24) 评论(0) 推荐(0) 编辑
摘要: Spring MVC 加载配置文件的几种方式 通过 context:property-placeholde 实现加载配置文件 在 springmvc.xml 配置文件里加入 context 相关引用 <?xml version="1.0" encoding="UTF-8"?> <beans xmln 阅读全文
posted @ 2024-07-10 11:39 Andy_lu020 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 新建一个基于 Maven 的"webapp"模板的基础工程 在 main 文件夹下新建java源码文件夹 将自动生成的index.jsp移入webapp的view文件夹下,在java下新建一个controller文件夹 添加Spring MVC框架所需的POM配置 <properties> <pro 阅读全文
posted @ 2024-07-10 10:04 Andy_lu020 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 使用注解的方式注入bean 在 spring-config.xml 添加如下配置: <content:component-scan base-package="org.example"/> 使用注解注入bean对象,有两类注解: (1)类注解:@Controller、@Service、@Reposi 阅读全文
posted @ 2024-07-09 16:13 Andy_lu020 阅读(33) 评论(0) 推荐(0) 编辑
摘要: **发生背景** 完整报错信息: ``` [***@localhost ~]$ java -jar arthas-boot.jar [INFO] JAVA_HOME: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b03-1.el7.x86_64/jre [IN 阅读全文
posted @ 2023-06-28 14:10 Andy_lu020 阅读(5414) 评论(0) 推荐(1) 编辑
摘要: 服务在测试环境运行没问题,部署到生产环境,连redis时报下面的错误: [2022-11-04 00:00:09][org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler->handleError#96][ERROR] 阅读全文
posted @ 2022-11-04 18:08 Andy_lu020 阅读(1007) 评论(0) 推荐(0) 编辑
摘要: SpringBoot版本1.x: server.context-path=/demo SpringBoot版本2.x: server.servlet.context-path=/demo 阅读全文
posted @ 2020-07-27 16:04 Andy_lu020 阅读(680) 评论(0) 推荐(0) 编辑
摘要: 说明 在Win10系统中,默认自带了中文输入法,使用起来非常的方便,但有时win10系统中自带的输入法会打不出中文的情况,该怎么办呢?遇到这样的问题,我们可以参考下本文中的方法来修复。 步骤: 1. cmd 输入“compmgmt.msc”打开计算机管理 2. 打开计算机管理窗口,在左侧依次展开【系 阅读全文
posted @ 2020-03-05 12:32 Andy_lu020 阅读(1977) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示