随笔分类 - Maven
阿里镜像
摘要:Maven官网下载地址 Maven官网地址 安装包类型可根据自己下载 解压压缩包 [root@rzk-maven]# ls apache-maven-3.8.4-bin.tar.gz [root@rzk-maven]# tar -zxvf apache-maven-3.8.4-bin.tar.gz
阅读全文
摘要:好久没打jar包到maven本地仓库都忘了 在maven仓库cmd进入 D:\maven\repository\io\netty\netty-bom>cmd 输入打包命令 D:\maven\repository\io\netty\netty-bom> mvn install:install-file
阅读全文
摘要:需要在pom.xml 添加 <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <!--添加配置跳过测试-
阅读全文
摘要:mvn install:install-file -DgroupId=com.oracle //设置项目代码的包名 -DartifactId=ojdbc6 //设置项目名或模块名 -Dversion=11.2.0.3 //设置版本号 -Dpackaging=jar //设置什么类型的文件(jar包)
阅读全文
posted @ 2020-07-13 14:45
Rzk
摘要:今天想打包个SpringBoot项目出错 </build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugi
阅读全文
posted @ 2020-06-11 16:46
Rzk
摘要:下载地址 http://maven.apache.org/download.cgi 进入环境变量设置 右键我的电脑-属性-高级系统设置-环境变量-系统变量-Path 检验版本 cmd mvn -v ##进入Maven仓库 说明仓库的概念 所谓的仓库就是用于存放项目需要的jar包的。 打开D:Mave
阅读全文
摘要:1 <build> 2 <resources> 3 <resource> 4 <directory>src/main/resources</directory> 5 <includes> 6 <include>**/*.properties</include> 7 <include>**/*.xml
阅读全文
摘要:<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
阅读全文
摘要:出现了这个警告 log4j:WARN No appenders could be found for logger (org.apache.ibatis.logging.LogFactory).log4j:WARN Please initialize the log4j system properl
阅读全文
摘要:**简单使用** 1. 在要使用Log4j 的类中,导入org.apache.log4j.Logger; 2. 日志对象,加载参数为当前类的class static Logger logger = Logger.getLogger(要测试类名.class); 3. 日志级别 logger.info(
阅读全文
摘要:<dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version></dependency> log4j.rootLogger=DEBUG,console,file#控制台输出的
阅读全文
摘要:pom.xml 配置<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding></properties>
阅读全文
摘要:由于Maven的约定大于配置,可能遇到的文件配置文件无法被导出或者生效问题 解决方案: 在pom.xml配置 <build> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**
阅读全文
摘要:解决办法: 1.在Tomcat目录下的lib文件夹中加入jstl 2. 在maven项目中加入jstl包:
阅读全文
摘要:第一步配置tomcat的deplotement里面要选择xxx.war exploded而不是xxx.war。如果是xxx.war的童鞋,请移除再加入xxx.war exploded。然后在tomcat的server里面on update action和on frame deactivation都选
阅读全文
摘要:出现了连接不上 在URL加上 ?serverTimezone=GMT 就可以了 就可以连接数据库了
阅读全文
摘要:<mirrors> <mirror> <id>alimaven</id> <mirrorOf>central</mirrorOf> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/<
阅读全文

浙公网安备 33010602011771号