Loading

随笔分类 -  Java

摘要:通过配置spring.mvc.static-path-pattern=/resources/**解决问题 阅读全文
posted @ 2022-01-13 16:26 繁夏 阅读(205) 评论(0) 推荐(0)
摘要:1. 先贴版本 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.12.RELEASE</version> </p 阅读全文
posted @ 2021-12-31 15:30 繁夏 阅读(440) 评论(0) 推荐(0)
摘要:【环境参数】 Web容器:Tomcat 9.0.20 IDE:IDEA 2020.3 【具体步骤】 1、配置Tomcat容器参数 编辑$CATALINA_HOME/bin/catalina.bat脚本,加入如下参数: -agentlib:jdwp=transport=dt_socket,addres 阅读全文
posted @ 2021-04-21 14:37 繁夏 阅读(464) 评论(0) 推荐(0)
摘要:pom文件 <?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" 阅读全文
posted @ 2021-04-13 16:40 繁夏 阅读(840) 评论(0) 推荐(0)
摘要:I/O Request via Channel or ChannelHandlerContext | + + + | ChannelPipeline | | | \|/ | | + + + + + | | | Inbound Handler N | | Outbound Handler 1 | | 阅读全文
posted @ 2020-12-24 14:55 繁夏 阅读(391) 评论(0) 推荐(0)
摘要:官方文档地址:mybatis-spring-boot-autoconfigure 阅读全文
posted @ 2020-12-11 22:25 繁夏 阅读(953) 评论(0) 推荐(0)
摘要:1、打开终端,输入: /usr/libexec/java_home -V 注意:输入命令参数区分大小写(-v是不对的,必须是-V) 如图:3个红框内依次为:输入命令; 当前Mac已安装jdk目录; Mac默认使用的jdk版本; 输入: vim ~/.bash_profile export JAVA_ 阅读全文
posted @ 2020-12-06 15:35 繁夏 阅读(739) 评论(0) 推荐(0)
摘要:logback设置字体颜色: %clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){yellow} 日志级别颜色的映射: Level Color FATAL Red ERROR Red WARN Yellow INFO Green DEBUG Green TRACE Green app 阅读全文
posted @ 2020-12-03 15:13 繁夏 阅读(1696) 评论(0) 推荐(0)
摘要:Import注解源码 @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface Import { /** * {@link Configuration @Configurat 阅读全文
posted @ 2020-11-30 17:28 繁夏 阅读(281) 评论(0) 推荐(0)
摘要:官方文档地址:spring-framework github首页 1. 修改国内镜像地址,以及避免gradle自动下载安装包 修改gradle/wrapper/gradle-wrapper.properties文件 distributionUrl=file:///Users/mico/gradle/ 阅读全文
posted @ 2020-11-29 20:38 繁夏 阅读(318) 评论(0) 推荐(0)
摘要:前言:swagger文档地址:swagger document 引入pom依赖 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId> <version>3.0.0</v 阅读全文
posted @ 2020-11-25 00:07 繁夏 阅读(639) 评论(0) 推荐(0)