1、下载linux安装包:http://maven.apache.org/download.cgi 2、设置目录,把apache-maven-3.6.3-bin.tar.gz放在/usr/local目录下 3、解压 tar -zxvf apache-maven-3.6.3-bin.tar.gz 4、 ...
分类:
系统相关 时间:
2020-12-02 12:49:32
阅读次数:
15
再向自定义注解添加元注解时,遇到一个错误 Annotations are not allowed here 排除写错和导入单元测试和Maven依赖的问题,百度一下并没有找到解决的办法,于是Google搜索一下,在SO上找到解决办法 意思就是说,在注解后面添加了“;”号导致的,一看自己的代码确实是这 ...
分类:
其他好文 时间:
2020-12-02 12:40:44
阅读次数:
5
* 系统:macOS* 开发工具:Idea* 问题描述:在idea中执行mvn clean install时报No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK ...
分类:
其他好文 时间:
2020-12-02 12:23:16
阅读次数:
4
手撸一个异步的Servlet 我们直接借助SpringBoot框架来实现一个Servlet,这里只展示Servlet代码: @WebServlet(urlPatterns = "/async",asyncSupported = true) @Slf4j public class AsyncServl ...
分类:
其他好文 时间:
2020-12-02 12:02:44
阅读次数:
3
a、减少开发,测试时间和努力。 b、使用 JavaConfig 有助于避免使用 XML。 c、避免大量的 Maven 导入和各种版本冲突。 d、通过提供默认值快速开始开发。没有单独的 Web 服务器需要。这意味着你不再需要启动 Tomcat,Glassfish 或其他任何东西。 e、需要更少的配置 ...
分类:
编程语言 时间:
2020-12-01 12:08:46
阅读次数:
9
在各项服务的调用过程中,难免出现断层,但是由于整个链路过于复杂难以排查,则使用zipkin可以清楚的看见每次访问的情况和整体的链路分布,及每个应用的依赖和被依赖的项目是什么。 1.下载zipkin https://dl.bintray.com/openzipkin/maven/io/zipkin/j ...
分类:
编程语言 时间:
2020-11-30 16:00:42
阅读次数:
8
出现的错误为: Multiple annotations found at this line:- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plu ...
分类:
其他好文 时间:
2020-11-30 15:21:50
阅读次数:
4
背景:idea 界面maven >install成功 cmd mvn dependency:copy-dependencies 本地仓库jar报错找不到 直接使用mvn使用的 是C:\Users\Administrator\.m2\settings.xml idea使用的是指定的settings.x ...
分类:
编程语言 时间:
2020-11-27 11:51:12
阅读次数:
20
一、配置 1.添加依赖 在 springboot 启动器中直接添加依赖,或者创建后添加 Maven 依赖: <!--spring-boot-starter-data-redis--> <dependency> <groupId>org.springframework.boot</groupId> < ...
分类:
编程语言 时间:
2020-11-27 11:49:48
阅读次数:
20
1. 引入maven依赖 1 <dependency> 2 <groupId>commons-io</groupId> 3 <artifactId>commons-io</artifactId> 4 <version>2.6</version> 5 </dependency> 2. 将zip文件转化 ...
分类:
其他好文 时间:
2020-11-26 15:18:31
阅读次数:
14