当前位置: 首页 > news >正文

Maven的安装配置-项目管理工具

各位看官,大家早安午安晚安呀~~~

如果您觉得这篇文章对您有帮助的话

欢迎您一键三连,小编尽全力做到更好
欢迎您分享给更多人哦

今天我们来学习:Maven的安装配置-项目管理工具

目录

1.什么是Maven?Maven用来干什么的?

2.我们如何创建一个Maven项目呢?

3.Maven有两个大功能:

3.1.项目构建

3.2.管理依赖

3.2.1原来如何引入依赖

3.2.2现在如何引入依赖

3.2.3.但是我们发现我们明明只引入了一个mysql的依赖却出现了两个

3.3.4.也可以:安装Maven Helper插件

4.Maven仓库:

4.1.如何查找Jar的坐标

4.2配置国内源

大家也可以直接复制我的XML文件

4.3.刚才阿里云提到的私有服务器(私服)


1.什么是Maven?Maven用来干什么的?

Maven是一个项目管理工具, 通过配置pom.xml文件,然后自动从“仓库”中获取jar包。
官方对于Maven的描述:
Welcome to Apache Maven – Maven
Apache Maven is a software project management and comprehension tool. Based on the
concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.
Maven是⼀个项项目理工具。基于POM(Project Object Model,项⽬对象模型)的概念,Maven可以通过一小段描述信息来管理项目的构建、报告和文档。

我们不需要单独下载Maven了,IDEA里面已经集成了Maven

2.我们如何创建一个Maven项目呢?

我以2023.2的IDEA专业版为例子

点击create就创建好了,创建好的项目大概长这个样子(我们点击pom.xml)会出现一些标签

我解释一些其他标签的含义:(这里不过多的解释,后面我们遇到了再进行解释)

  • <packaging>

    • 指定项目的打包方式,如 jarwarpom 等。

    • 示例:<packaging>jar</packaging>

  • <dependencies>

    • 定义项目所依赖的外部库。

  • <properties>:定义一些属性值,可以在 POM 中重复使用。

  • <build>:配置项目的构建过程,包括插件和资源文件。

3.Maven有两个大功能:

3.1.项目构建

Maven 提供了标准的,跨平台(Linux, Windows, MacOS等)的自动化项目构建方式。
当我们开发了⼀个项目之后,代码需要经过编译, 测试, 打包, 发布等流程, 每次代码的修改,都需要经过这些流程, 如果代码反复调试修改,这个流程就需要反复进行, 就显得特别麻烦,而Maven 给我们提供了⼀套简单的命令来完成项目的构建
  • clean:删除 target 目录(清理旧构建文件(.class文件))。
  • validate:检查项目配置是否正确(如 pom.xml 是否有效)。
  • compile:编译源代码(.java → .class)。
  • test:运行单元测试(检查代码逻辑)。
  • package:打包代码(生成 JAR/WAR 文件)。
  • verify:验证测试和代码质量(如集成测试)。
  • install:将包安装到本地仓库(供其他项目使用)。
  • deploy:发布到远程仓库(团队共享依赖)。
  • site:生成项目文档网站(如报告、API 文档)。

3.2.管理依赖

Maven是一个项目管理工具, 通过配置pom.xml文件,然后自动从“仓库”中获取jar包

这个jar包就是依赖

Maven 的“依赖管理”可以通俗地理解为:我们的项目需要用到别人的“工具包”(譬如库),而 Maven 就像是一个“自动管家”,帮我们一键下载、整理这些工具包,并确保它们之间不会“打架”。


举个生活化的例子 🌰

假设你想做一道菜(开发项目),需要用到:

  1. 刀(库A)

  2. 砧板(库B)

  3. 酱油(库C)

但问题来了:

  • 刀(库A)本身需要搭配一个磨刀石(库D)才能用。

  • 酱油(库C)必须用某个特定品牌(版本1.2),否则会太咸。

没有 Maven 时

  • 你得自己跑超市买齐所有东西,还得记住每个工具的版本和兼容性。

  • 一旦买错版本(比如酱油版本1.3),整道菜可能就毁了。

有了 Maven 时

  • Maven 会:

    1. 自动下载:刀、砧板、酱油,甚至磨刀石(传递性依赖)。

    2. 检查版本:确保酱油是1.2,避免冲突。

    3. 整理工具包:所有工具按分类放好(本地仓库),随用随取。

3.2.1原来如何引入依赖

3.2.2现在如何引入依赖

 我们只需要在pom.xml中引⼊mysql-connector-java的依赖就可以了

我们的需要的依赖一般都在中央仓库中

中央仓库

然后在这个网站中去找https://mvnrepository.com/

然后在pom.xml中引入依赖

3.2.3.但是我们发现我们明明只引入了一个mysql的依赖却出现了两个

多的这个就是依赖的依赖,如果我们不需要怎么排除这些依赖呢?

通过标签<exclusions></exlusions>排除也可以安装Maven Helper插件

3.3.4.也可以:安装Maven Helper插件

Installa安装就好了

4.Maven仓库:

中央仓库: maven 软件中内置⼀个远程仓库地址,就是中央仓库,服务于整个互联网. 由 Maven 团队维护,全球唯⼀.

仓库地址: https://repo1.maven.org/maven2/
可以通过 https://mvnrepository.com 这个网站来查询并下载
我们也可以把自己写好的Jar包上传到中央仓库(具备⼀定的要求), 也可以从中央仓库下载Jar包

4.1.如何查找Jar的坐标

1.访问 https://mvnrepository.com/
2.查找 比如mysql

4.2配置国内源

由于中央仓库是在国外维护的,所以我们第一次导入jar包从中央仓库中是很慢的
国内有没有呢?
有的我们可以更换阿里云的仓库(也可以称之为私服)
首先:打开settings.xml(Maven的配置文件), 在 mirrors 节点上,添加内容如下:
 <mirror><id>aliyunmaven</id><mirrorOf>central</mirrorOf><name>阿⾥云公共仓库</name><url>http://maven.aliyun.com/nexus/content/groups/public/</url></mirror>

这个配置文件的地址是

如果我们修改可settings的地址,需要在这里也进行修改,还有防止以后新建项目也要修改。

我们这个时候还要对这个地方进行修改(还是和刚才一样的操作)

大家也可以直接复制我的XML文件

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<!-- 
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.-->
<!-- | This is the configuration file for Maven. It can be specified at two levels:||  1. User Level. This settings.xml file provides configuration for a single user,|                 and is normally provided in ${user.home}/.m2/settings.xml.||                 NOTE: This location can be overridden with the CLI option:||                 -s /path/to/user/settings.xml||  2. Global Level. This settings.xml file provides configuration for all Maven|                 users on a machine (assuming they're all using the same Maven|                 installation). It's normally provided in|                 ${maven.conf}/settings.xml.||                 NOTE: This location can be overridden with the CLI option:||                 -gs /path/to/global/settings.xml|| The sections in this sample file are intended to give you a running start at| getting the most out of your Maven installation. Where appropriate, the default| values (values used when the setting is not specified) are provided.|| -->
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
<!--  localRepository| The path to the local repository maven will use to store artifacts.|| Default: ${user.home}/.m2/repository<localRepository>/path/to/local/repo</localRepository>-->
<!--  interactiveMode| This will determine whether maven prompts you when it needs input. If set to false,| maven will use a sensible default value, perhaps based on some other setting, for| the parameter in question.|| Default: true<interactiveMode>true</interactiveMode>-->
<!--  offline| Determines whether maven should attempt to connect to the network when executing a build.| This will have an effect on artifact downloads, artifact deployment, and others.|| Default: false<offline>false</offline>-->
<!--  pluginGroups| This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e.| when invoking a command line like "mvn prefix:goal". Maven will automatically add the group identifiers| "org.apache.maven.plugins" and "org.codehaus.mojo" if these are not already contained in the list.| -->
<pluginGroups>
<!--  pluginGroup| Specifies a further group identifier to use for plugin lookup.<pluginGroup>com.your.plugins</pluginGroup>-->
</pluginGroups>
<!--  proxies| This is a list of proxies which can be used on this machine to connect to the network.| Unless otherwise specified (by system property or command-line switch), the first proxy| specification in this list marked as active will be used.| -->
<proxies>
<!--  proxy| Specification for one proxy, to be used in connecting to the network.|<proxy><id>optional</id><active>true</active><protocol>http</protocol><username>proxyuser</username><password>proxypass</password><host>proxy.host.net</host><port>80</port><nonProxyHosts>local.net|some.host.com</nonProxyHosts></proxy>-->
</proxies>
<!--  servers| This is a list of authentication profiles, keyed by the server-id used within the system.| Authentication profiles can be used whenever maven must make a connection to a remote server.| -->
<servers>
<!--  server| Specifies the authentication information to use when connecting to a particular server, identified by| a unique name within the system (referred to by the 'id' attribute below).|| NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are|       used together.|<server><id>deploymentRepo</id><username>repouser</username><password>repopwd</password></server>-->
<!--  Another sample, using keys to authenticate.<server><id>siteServer</id><privateKey>/path/to/private/key</privateKey><passphrase>optional; leave empty if not used.</passphrase></server>-->
</servers>
<!--  mirrors| This is a list of mirrors to be used in downloading artifacts from remote repositories.|| It works like this: a POM may declare a repository to use in resolving certain artifacts.| However, this repository may have problems with heavy traffic at times, so people have mirrored| it to several places.|| That repository definition will have a unique id, so we can create a mirror reference for that| repository, to be used as an alternate download site. The mirror site will be the preferred| server for that repository.| -->
<mirrors>
<!--  mirror| Specifies a repository mirror site to use instead of a given repository. The repository that| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.|<mirror><id>mirrorId</id><mirrorOf>repositoryId</mirrorOf><name>Human Readable Name for this Mirror.</name><url>http://my.repository.com/repo/path</url></mirror>-->
<mirror>
<id>aliyunmaven</id>
<mirrorOf>*</mirrorOf>
<name>阿里云公共仓库</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
</mirrors>
<!--  profiles| This is a list of profiles which can be activated in a variety of ways, and which can modify| the build process. Profiles provided in the settings.xml are intended to provide local machine-| specific paths and repository locations which allow the build to work in the local environment.|| For example, if you have an integration testing plugin - like cactus - that needs to know where| your Tomcat instance is installed, you can provide a variable here such that the variable is| dereferenced during the build process to configure the cactus plugin.|| As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles| section of this document (settings.xml) - will be discussed later. Another way essentially| relies on the detection of a system property, either matching a particular value for the property,| or merely testing its existence. Profiles can also be activated by JDK version prefix, where a| value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'.| Finally, the list of active profiles can be specified directly from the command line.|| NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact|       repositories, plugin repositories, and free-form properties to be used as configuration|       variables for plugins in the POM.|| -->
<profiles>
<!--  profile| Specifies a set of introductions to the build process, to be activated using one or more of the| mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/>| or the command line, profiles have to have an ID that is unique.|| An encouraged best practice for profile identification is to use a consistent naming convention| for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 'user-brett', etc.| This will make it more intuitive to understand what the set of introduced profiles is attempting| to accomplish, particularly when you only have a list of profile id's for debug.|| This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo.<profile><id>jdk-1.4</id><activation><jdk>1.4</jdk></activation><repositories><repository><id>jdk14</id><name>Repository for JDK 1.4 builds</name><url>http://www.myhost.com/maven/jdk14</url><layout>default</layout><snapshotPolicy>always</snapshotPolicy></repository></repositories></profile>-->
<!-- | Here is another profile, activated by the system property 'target-env' with a value of 'dev',| which provides a specific path to the Tomcat instance. To use this, your plugin configuration| might hypothetically look like:|| ...| <plugin>|   <groupId>org.myco.myplugins</groupId>|   <artifactId>myplugin</artifactId>||   <configuration>|     <tomcatLocation>${tomcatPath}</tomcatLocation>|   </configuration>| </plugin>| ...|| NOTE: If you just wanted to inject this configuration whenever someone set 'target-env' to|       anything, you could just leave off the <value/> inside the activation-property.|<profile><id>env-dev</id><activation><property><name>target-env</name><value>dev</value></property></activation><properties><tomcatPath>/path/to/tomcat/instance</tomcatPath></properties></profile>-->
</profiles>
<!--  activeProfiles| List of profiles that are active for all builds.|<activeProfiles><activeProfile>alwaysActiveProfile</activeProfile><activeProfile>anotherAlwaysActiveProfile</activeProfile></activeProfiles>-->
</settings>

4.3.刚才阿里云提到的私有服务器(私服)

私服: 一般由公司团队搭建的私有仓库.
私服属于某个公司,或者某个部门, 往往需要⼀定权限.
有了私服之后, Maven依赖下载的顺序又发生了变化
当Maven需要下载资源的时候
1. 先从本地仓库获取, 本地仓库存在, 则直接返回
2. 如果本地仓库没有, 就从私服请求, 私服存在该资源, 就直接返回
3. 如果私服上不存在该资源,则从中央仓库下载, 中央仓库不存在, 就报错了...
4. 如果中央仓库中存在, 就先缓存在私服上之后,再缓存到本地仓库里, 再为Maven的下载请求提供服务

上述就是Maven的安装配置-项目管理工具的全部内容啦

能看到这里相信您一定对小编的文章有了一定的认可。

有什么问题欢迎各位大佬指出
欢迎各位大佬评论区留言修正~~

您的支持就是我最大的动力​​​!!!

相关文章:

Maven的安装配置-项目管理工具

各位看官&#xff0c;大家早安午安晚安呀~~~ 如果您觉得这篇文章对您有帮助的话 欢迎您一键三连&#xff0c;小编尽全力做到更好 欢迎您分享给更多人哦 今天我们来学习&#xff1a;Maven的安装配置-项目管理工具 目录 1.什么是Maven&#xff1f;Maven用来干什么的&#xff1f…...

【Linux篇】缓冲区的工作原理:如何影响你程序的输入输出速度

从内存到磁盘&#xff1a;缓冲区如何提升文件I/O效率 一. 缓冲区1.1 什么是缓冲区1.2 为什么要引入缓冲区1.3 缓冲区类型1.4 FILE1.4.1 基本概念1.4.2 FILE 结构体的作用1.4.3 FILE 的工作机制 二. 最后 在程序开发中&#xff0c;缓冲区是一个经常被提及却不容易深入理解的概念…...

编写junit测试类 import org.junit.Test;

1. 添加依赖 <!-- Spring Boot Starter Test --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> 2. …...

初识数据结构——深入理解LinkedList与链表:吃透LinkedList与链表的终极指南

&#x1f4cc; 深入理解LinkedList与链表&#xff1a;从原理到实战应用 &#x1f31f; 引言 在Java集合框架中&#xff0c;LinkedList和ArrayList是最常用的两种列表结构。它们各有优劣&#xff0c;适用于不同的场景。本文将带你深入探索LinkedList的底层实现——链表&#x…...

C++版Qt之登录界面设计

在C开发中&#xff0c;使用Qt框架可以快速构建美观且功能强大的GUI应用程序。本文将介绍如何设计一个漂亮的登录界面&#xff0c;包括账号和密码输入框&#xff0c;并确保只有验证成功后才能进入主窗口。 项目结构 文件列表 LoginDialog.h&#xff1a;登录对话框的头文件Logi…...

Java logback框架日志输出中文乱码的解决方案(windows)

在Java开发中&#xff0c;日志记录是一个重要的部分&#xff0c;它可以帮我们定位问题、运行时监控、错误排查与故障恢复。但是&#xff0c;在有些情况下&#xff0c;使用Logback记录的中文日志会出现乱码&#xff0c;这会影响日志的可读性&#xff0c;给维护带来麻烦。本文将探…...

【c++】c/c++内存管理

小编个人主页详情<—请点击 小编个人gitee代码仓库<—请点击 c系列专栏<—请点击 倘若命中无此运&#xff0c;孤身亦可登昆仑&#xff0c;送给屏幕面前的读者朋友们和小编自己! 目录 前言一、c语言内存管理二、一图搞懂c/c中的程序内存区域划分三、c内存管理1. new和d…...

【C++】Stack Queue 仿函数

&#x1f4dd;前言&#xff1a; 这篇文章我们来讲讲STL中的stack和queue。因为前面我们已经有了string、vector和list的学习基础&#xff0c;所以这篇文章主要关注一些stack和queue的细节问题&#xff0c;以及了解一下deque&#xff08;缝合怪&#xff09;和priority_queue &am…...

Python:基于Flask框架的数据可视化系统

以下是一个基于Flask框架的数据可视化系统代码示例&#xff0c;包含核心功能实现&#xff1a; python 复制 # app.py 后端核心代码 from flask import Flask, render_template, jsonify import sqlite3 from collections import defaultdict import jieba import reapp Fla…...

JVM即时编译(JIT)

JVM基础回顾 Java 作为一门高级程序语言&#xff0c;由于它自身的语言特性&#xff0c;它并非直接在硬件上运行&#xff0c;而是通过编译器(前端编译器)将 Java 程序转换成该虚拟机所能识别的指令序列&#xff0c;也就是字节码&#xff0c;然后运行在虚拟机之上的&#xff1b;…...

JVM高阶架构:并发模型×黑科技×未来趋势解析

&#x1f680;前言 “你是否还在为synchronized锁竞争头疼&#xff1f;是否好奇ZGC如何实现亚毫秒停顿&#xff1f;Java的未来将走向何方&#xff1f; 本文将带你深入JVM最硬核的三大领域&#xff1a; 并发模型&#xff1a;揭秘happens-before如何保证多线程安全&#xff08;…...

Java的JDK、JRE、JVM关系与作用

Java的JDK、JRE、JVM关系与作用 java中的JDK、JRE和JVM是三个核心组件&#xff0c;各自承担不同角色&#xff0c;且存在层级依赖关系 1. JVM&#xff08;Java Virtual Machine&#xff0c;Java虚拟机&#xff09; 是什么&#xff1a; JVM是虚拟的计算机&#xff0c;能够执行…...

XMLHttpRequest vs Fetch API:一场跨越时代的“浏览器宫斗剧“

## 序幕&#xff1a;两个API的"身世之谜" 在Web开发的江湖里&#xff0c;XMLHttpRequest&#xff08;简称XHR&#xff09;就像一位身经百战的老将&#xff0c;而Fetch API则是手持光剑的绝地武士。让我们先来段"DNA检测"&#xff1a; - **XHR&#xff08…...

Windows Anaconda使用Sentence-BERT获取句子向量

1、安装Anaconda&#xff1a; Anaconda是一个流行的Python数据科学平台&#xff0c;它包含了许多科学计算和数据分析的库&#xff0c;包括transformers和sentence_transformers。虽然不是必需的&#xff0c;但使用Anaconda可以简化环境管理和依赖安装的过程。 可以从Anaconda官…...

【Java设计模式】第5章 工厂方法模式讲解

5. 工厂方法模式 5.1 工厂方法讲解 定义:定义一个创建对象的接口,由子类决定实例化的类,将对象创建延迟到子类。适用场景: 创建对象需要大量重复代码。客户端不依赖具体产品的创建细节。优点: 符合开闭原则,新增产品只需扩展子类。客户端仅依赖抽象接口,不依赖具体实现…...

结合 Less + CSS 变量实现切换主题

一开始的思路是通过 Less 变量作用范围 来切换 light 和 dark 主题&#xff0c;但 Less 本身不会动态监听类名变化&#xff0c;所以直接这样写是 不可行的&#xff0c;因为 Less 是 预处理语言&#xff0c;它在编译阶段就确定了 color 的值&#xff0c;而不是在运行时动态切换。…...

数据分析之python处理常用复杂转置数据

前段时间根据需求配合ai写了个转置excel代码&#xff0c;挺好用的&#xff0c;而且可以选择excel&#xff0c;不局限于excel存在哪个地方&#xff0c;都可以转置&#xff0c;但是转置后的excel记得要先创建放在转置文件的目录下。 原本的数据长这样 转置后则可以变为这样&…...

未来杭州:科技与诗意的时空交响曲

故事背景 故事发生在中国浙江杭州的未来科技时代&#xff0c;通过六个充满未来感的场景展现传统文明与尖端科技的完美融合。全篇无人物角色&#xff0c;专注于构建兼具东方美学与赛博朋克风格的沉浸式景观。 故事内容 从晨雾中浮现全息诗句的西湖&#xff0c;到吞吐智能包裹的运…...

彩虹表是什么

彩虹表是一种用于破解加密散列函数的预计算表&#xff0c;主要用于破解密码的哈希值。以下是关于加密文件与彩虹表的相关信息&#xff1a; 彩虹表的原理 • 时空折中&#xff1a;彩虹表基于时空折中理论&#xff0c;通过预先计算并存储大量可能的密码及其哈希值&#xff0c;减少…...

[BreachCTF 2025]

周末的这个居然一个密码都不会,作了4个pwn,给原码看着真方便 FSWn3d #define _GNU_SOURCE #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <unistd.h>char buffer[152…...

行业案例 | 印度航空借助 Azure AI,提升智能航空体验

自2022年塔塔集团&#xff08;Tata Group&#xff09;接管以来&#xff0c;印度航空启动了全面现代化升级&#xff0c;不仅豪掷470架新飞机订单以重塑“以人为本”的品牌形象&#xff0c;更将数字化作为核心战略——将所有工作负载&#xff08;包括全新官网&#xff09;从本地数…...

【Java设计模式】第7章 建造者模式讲解

7-1 建造者模式讲解 1. 定义与类型 定义: 将复杂对象的构建与表示分离,使相同构建过程可创建不同表示。类型: 创建型模式。通俗解释: 分步构建含多组件的对象,流程固定但顺序灵活(如做菜时放盐顺序可变)。2. 适用场景 对象内部结构复杂(多属性或多步骤)。需将对象创建与…...

鸿蒙ArkTS实战:从零打造智能表达式计算器(附状态管理+路由传参核心实现)

还在为组件状态混乱、页面跳转丢参数而头疼&#xff1f; 这篇博客将揭秘如何用鸿蒙ArkTS打造一个漂亮美观的智能计算器&#xff1a; ✅ 输入完整表达式&#xff0c;秒出结果——字符串切割简单计算 ✅ 状态管理黑科技——Provide/Consume 实现跨组件实时响应 ✅ 路由传参实战—…...

虚拟机上安装openEuler和openGauss数据库

1.虚拟机版本选择VM 16 PRO 2.openEuler版本选择openEuler-22.03-LTS-SP4-x86_64 下载地址&#xff1a;https://mirrors.aliyun.com/openeuler/openEuler-22.03-LTS-SP4/ISO/x86_64/openEuler-22.03-LTS-SP4-x86_64-dvd.iso 3.虚拟机安装openEuler过程&#xff1a; 4.安装ope…...

深入解析 Jenkins Agent 的 .jnlp 启动文件

&#x1f9e9; 深入解析 Jenkins Agent 的 .jnlp 启动文件 在 Jenkins 中&#xff0c;通过 JNLP&#xff08;Java Network Launch Protocol&#xff09;方式连接 Agent 是一种常见且灵活的方式。你可能曾见过类似这样的命令&#xff1a; java -jar agent.jar -jnlpUrl file:/…...

在 macOS 上连接 PostgreSQL 数据库(pgAdmin、DBeaver)

在 macOS 上连接 PostgreSQL 数据库 pgAdmin 官方提供的图形化管理工具&#xff0c;支持 macOS。 下载地址&#xff1a;https://www.pgadmin.org/ pgAdmin 4 是对 pgAdmin 的完全重写&#xff0c;使用 Python、ReactJs 和 Javascript 构建。一个用 Electron 编写的桌面运行时…...

HarmonyOS Next~鸿蒙系统原生流畅性创新解析:预加载技术与全栈优化的革命性突破

鸿蒙系统原生流畅性创新解析&#xff1a;预加载技术与全栈优化的革命性突破 一级类目&#xff1a;鸿蒙创新特性 | 二级类目&#xff1a;原生流畅 鸿蒙系统&#xff08;HarmonyOS&#xff09;自诞生以来&#xff0c;始终以“天生流畅”为核心目标&#xff0c;其原生流畅性不仅…...

【图像处理】:opencv实现模糊图像处理和对比度增强

opencv实现模糊图像处理和对比度增强 模糊图像处理**方法 1&#xff1a;Wiener 反卷积&#xff08;已知模糊核&#xff09;****方法 2&#xff1a;非锐化掩码&#xff08;Unsharp Masking&#xff09;****方法 3&#xff1a;拉普拉斯锐化&#xff08;Laplacian Sharpening&…...

@SentinelResource注解,sentinel限流,熔断自定义返回 ,配合nacos完成持久化

sentinel熔断和限流自定义返回 如果发生熔断或者限流&#xff0c;会返回500错误页面&#xff0c;希望返回自定义兜底数据&#xff0c;这时候可使用SentinelResource实现 操作 1、添加统一返回结果类 ( 在做自定义处理的时候, 要求方法的声明必须一致) import lombok.Data;…...

AJAX简介

一、AJAX 是什么&#xff1f; AJAX&#xff08;Asynchronous JavaScript and XML&#xff09;是一种异步网络请求技术&#xff0c;它的核心是允许网页在不刷新整个页面的情况下&#xff0c;向服务器发送或接收数据&#xff0c;并动态更新页面内容。简单来说&#xff0c;AJAX 让…...

平台算法暗战:ebay欧洲站搜索词长度同比缩短2.3字符的应对策略

随着电商平台算法的快速更迭&#xff0c;卖家迎来了新的挑战。根据最近数据显示&#xff0c;eBay欧洲站搜索关键词的平均长度同比缩短了2.3个字符。这看似细微的变化&#xff0c;实则在搜索曝光、排名权重、流量分发等多方面带来实质性影响。 那么&#xff0c;这次「搜索词缩水…...

记录一次家里宽带 被修改带宽维权的事情

去年8月份发现家里电信宽带被限制带宽 原本上行300m被限制成40m 并且没有任何通知和短信 打10000号要求上门测速 拍下测速结果留作证据 然后等他们处理的同时 开始给我反馈是pcdn 然后说是工信部统一下调带宽 投诉12345 12300 不过这些投诉其实并不会给他们造成什么压…...

刀客doc:亚马逊把Netflix的广告价格打下来了

01 要说在美国广告市场里&#xff0c;未被巨头垄断且最为活跃的板块&#xff0c;应该就是流媒体了。 根据群邑智库的数据&#xff0c;2025年CTV广告将以20%的增速&#xff0c;冲刺460亿美元的市场规模。到2029年&#xff0c;全球流媒体电视的广告收入将占电视总收入的37.5%。…...

【文献阅读】NVILA: Efficient Frontier Visual Language Models

发表于2025年3月6日 英伟达团队 摘要 近年来&#xff0c;视觉语言模型&#xff08;VLMs&#xff09;在准确性方面取得了显著进展。然而&#xff0c;其效率却较少受到关注。本文介绍了NVILA&#xff0c;这是一系列旨在优化效率和准确性的开源视觉语言模型。在VILA的基础上&am…...

驱动-创建设备节点

字符设备相关的知识面&#xff1a;已经了解了 申请设备号、注册字符设备。 已经将字符设备添加进入内核了&#xff0c;那么如何使用这个字符设备呢&#xff1f; Linux 里面一切皆文件&#xff0c;对内核中的字符设备进行文件操作如打开、关闭、读、写等&#xff0c;但是并不支持…...

Vue知识点(5)-- 动画

CSS 动画是 Vue3 中实现组件动画效果的高效方式&#xff0c;主要通过 CSS transitions 和 keyframes 动画 CSS Keyframes&#xff08;关键帧动画&#xff09; 用来创建复杂的动画序列&#xff0c;可以精确控制动画的各个阶段。 核心语法&#xff1a; keyframes animationNa…...

基于AT89C52单片机的植物浇水与智能空气土壤环境监测报警系统

点击链接获取Keil源码与Project Backups仿真图&#xff1a; https://download.csdn.net/download/qq_64505944/90579535?spm1001.2014.3001.5503 功能介绍&#xff1a; 1、功能&#xff1a;液晶器显示检测到的土壤湿度与空气温度与光照强度&#xff1b;温度和光照大于设置的…...

指针进阶( 上 )

内容大纲 一.字符指针 二.指针数组 三.数组指针 四. 数组传参和指针传参 引言 指针是什么呢&#xff1f;指针是用来干什么的呢&#xff1f;指针的大小是多少呢&#xff1f;指针的大小具有什么属性呢&#xff1f; 解答&#xff1a;指针是个变量&#xff0c;用来存放变量地…...

java设计模式-外观模式

外观模式(facade) 基本介绍 1、外观模式也叫过程模式,外观模式为子系统中的一组接口提供一个一致的界面&#xff0c;次模式定义一个高层接口&#xff0c;这个接口是的这一子系统更加容易使用。 2、外观模式通过定义一个一直的接口&#xff0c;用以屏蔽内部子系统的细节&#x…...

selenium元素获取

from selenium import webdriver from selenium.webdriver.common.by import Bydriver webdriver.Chrome()driver.maximize_window()#最大化窗口 #隐式等待 driver.implicitly_wait(10)#打开网页 driver.get("https://www.zhipin.com/beijing/?kacity-sites-101010100&q…...

23种设计模式-行为型模式-访问者

文章目录 简介场景解决完整代码核心实现 总结 简介 访问者是一种行为设计模式&#xff0c;它能把算法跟他所作用的对象隔离开来。 场景 假如你的团队开发了一款能够使用图像里地理信息的应用程序。图像中的每个节点既能代表复杂实体&#xff08;例如一座城市&#xff09;&am…...

springMVC-拦截器详解

拦截器 概述 SpringMVC的处理器拦截器类似于Servlet开发中的过滤器Filter,用于对处理器进行预处理和后处理。开发者可以自己定义一些拦截器来实现特定的功能。 过滤器与拦截器的区别&#xff1a;拦截器是AOP思想的具体应用。 过滤器 servlet规范中的一部分&#xff0c;任何ja…...

centos练习docker<基础>

这半喇月发生了很多事&#xff0c;很无谓很闹心&#xff0c;今天重拾起自己&#xff0c;做做功课写写字 文章目录 一、准备二、实践2.1 安装docker2.2docker镜像操作2.2.1 下载镜像等基本操作2.2.2 启动容器等基本操作2.2.3 修改页面2.2.4 保存镜像2.2.5 分享社区 总结 一、准…...

GPT-5、o3和o4-mini即将到来

原计划有所变更: 关于我们应有何期待的一些零散想法。 深度研究(Deep Research)确实强大但成本高昂且速度较慢(当前使用o3模型)。即将推出的o4-mini在性能上可能与o3相近,但将突破这些限制,让全球用户——甚至免费用户(尽管会有速率限制)——都能用上世界顶级AI研究助…...

EchoMimic 音频驱动照片生成视频部署测试

环境&#xff1a;Windows 11 NVIDIA RTX 3070 Laptop 16GB 我配置了阿里云的镜像&#xff0c;要实现一样的效果&#xff0c;你也可以在每一行的命令后加 -i https://mirrors.aliyun.com/pypi/simple/ 如&#xff1a; pip install package_name -i https://mirrors.aliyun.…...

React 和 JSX 中,这些符号 (=>, <, ? :)的用法

在 React 和 JSX 中&#xff0c;这些符号 (>, <, ? :) 都是 JavaScript 的语法特性&#xff0c;但它们在 JSX 中有特殊的用法和规则。下面我会详细解释每个符号的用途、语法规则以及在 React/JSX 中的具体应用。 1. 箭头函数 > (Arrow Function) 基本语法&#xff1…...

mindie1.0新特性及调试问题总结

说明 最近在ascend 310P3上使用mindie 1.0部署模型&#xff0c;跟我以前使用的mindie 1.0_rc2比&#xff0c;有很多新的特性和变化&#xff0c;导致部署出现了不少问题。这里罗列下我的发现&#xff0c;希望对其他人有用。 特性1&#xff1a;需要显式配置share_memory 报错信…...

【Axure原型案例】悦购APP产品原型设计

一、项目背景 在时尚潮流蓬勃发展的当下&#xff0c;潮流服装市场潜力巨大。悦购APP作为一款专注于潮流服装的商城APP&#xff0c;旨在为用户提供丰富多样的潮流服装选择&#xff0c;打造便捷、时尚的购物体验。本次使用Axure进行产品原型设计&#xff0c;旨在将产品理念和功能…...

React 列表渲染

你可能经常需要通过 JavaScript 的数组方法 来操作数组中的数据&#xff0c;从而将一个数据集渲染成多个相似的组件。在这篇文章中&#xff0c;你将学会如何在 React 中使用 filter() 筛选需要渲染的组件和使用 map() 把数组转换成组件数组。 1.如何通过 JavaScript 的 map() 方…...

《深度解析LightGBM与MySQL数据集成:高效机器学习的新范式》

在机器学习工程实践中&#xff0c;数据与模型的高效交互一直是制约算法性能发挥的关键瓶颈。LightGBM作为梯度提升决策树框架的杰出代表&#xff0c;其与关系型数据库MySQL的深度集成能力&#xff0c;为数据科学家提供了从原始数据到预测结果的完整解决方案。这种集成不是简单的…...