常用maven的依赖坐标

登陆maven 官网,地址:https://mvnrepository.com/

 <build>
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.*</include>
                </includes>
                <filtering>false</filtering>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*.*</include>
                </includes>
                <filtering>false</filtering>
            </resource>
        </resources>
    </build>
//shiro
<dependency>
    <groupId>org.apache.shiro</groupId>
    <artifactId>shiro-core</artifactId>
    <version>1.4.0</version>
</dependency>
  <dependency>
            <groupId>org.apache.shiro</groupId>
            <artifactId>shiro-web</artifactId>
            <version>1.4.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.shiro</groupId>
            <artifactId>shiro-ehcache</artifactId>
            <version>1.4.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.shiro</groupId>
            <artifactId>shiro-spring</artifactId>
            <version>1.4.0</version>
        </dependency>
        <!-- 兼容于thymeleaf的shiro -->
        <dependency>
            <groupId>com.github.theborakompanioni</groupId>
            <artifactId>thymeleaf-extras-shiro</artifactId>
            <version>2.0.0</version>
        </dependency>
<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-log4j12</artifactId>
			<version>1.7.12</version>
			<scope>test</scope>
		</dependency>
		<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api -->
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<version>1.7.21</version>
		</dependency>
		
		2020.1 jwt依赖
<dependency>
            <groupId>com.auth0</groupId>
            <artifactId>java-jwt</artifactId>
            <version>3.4.1</version>
        </dependency>

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <!--mybatis-plus-->
        <dependency>
            <groupId>com.baomidou</groupId>
            <artifactId>mybatis-plus-boot-starter</artifactId>
        </dependency>

        <!--mysql-->
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
        </dependency>


nacous feign
<!--服务注册-->
        <dependency>
             <groupId>org.springframework.cloud</groupId>
             <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
         </dependency>
        <!--服务调用-->
        <dependency>
             <groupId>org.springframework.cloud</groupId>
             <artifactId>spring-cloud-starter-openfeign</artifactId>
         </dependency>


hystrix熔断
 <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-ribbon</artifactId>
        </dependency>
        <!--hystrix依赖,主要是用  @HystrixCommand -->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
        </dependency>

  <!-- redis -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-redis</artifactId>
        </dependency>

        <!-- spring2.X集成redis所需common-pool2-->
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-pool2</artifactId>
            <version>2.6.0</version>
        </dependency>
        
spring.redis.host=192.168.44.132
spring.redis.port=6379
spring.redis.database= 0
spring.redis.timeout=1800000

spring.redis.lettuce.pool.max-active=20
spring.redis.lettuce.pool.max-wait=-1
#最大阻塞等待时间(负数表示没限制)
spring.redis.lettuce.pool.max-idle=5
spring.redis.lettuce.pool.min-idle=0
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 是的,可以使用 Maven 导入游戏引擎的依赖Maven 是一个项目管理工具,可以用来管理 Java 项目的依赖关系和构建过程。使用 Maven 可以方便地导入各种第三方库,包括游戏引擎。 要使用 Maven 导入游戏引擎的依赖,需要在项目的 `pom.xml` 文件中添加相应的依赖声明。例如,如果要导入 Unity 游戏引擎的依赖,可以在 `pom.xml` 文件中添加如下声明: ``` <dependency> <groupId>com.unity3d</groupId> <artifactId>unity</artifactId> <version>5.6.3</version> </dependency> ``` 然后,在命令行中运行 `mvn install` 命令即可安装依赖。安装完成后,就可以在项目中使用 Unity 游戏引擎了。 ### 回答2: 可以使用Maven来导入游戏引擎的依赖Maven是一个常用的项目管理工具,可以帮助我们自动化构建项目和管理依赖项。通过在项目的pom.xml文件中添加特定的依赖项,我们可以轻松地将游戏引擎的库文件导入到项目中。 首先,我们需要在pom.xml文件中添加一个dependencies标签来定义项目所需的依赖项。在这个标签内,我们可以添加游戏引擎的依赖项,比如引擎的核心库、渲染库、物理引擎等等。 接下来,我们需要在Maven的中央仓库或其他仓库中查找游戏引擎的依赖项的坐标坐标通常由groupId、artifactId和version组成。我们可以在仓库中搜索特定游戏引擎的坐标,然后将其添加到pom.xml文件中的dependencies标签内。 在添加了依赖坐标后,Maven会自动下载引擎库,并将其包含在项目的构建路径中。此后,在项目中就可以直接使用游戏引擎的相关功能和类了。 使用Maven导入游戏引擎的依赖项可以提供更好的依赖管理和版本控制。当需要更新或切换游戏引擎版本时,我们只需更新pom.xml文件中的相应依赖坐标Maven会自动下载并更新库文件。此外,Maven还可以帮助我们管理其他项目的依赖项,提高了项目的可维护性和扩展性。 综上所述,通过使用Maven,我们可以方便地导入游戏引擎的依赖项,并更好地管理和维护项目。 ### 回答3: 当然可以使用Maven导入游戏引擎的依赖Maven是一个功能强大的构建工具和依赖管理工具,能够帮助我们自动下载和管理项目所需的依赖库。如果你想在你的游戏开发项目中使用某个游戏引擎,可以在项目的pom.xml文件中配置相关的依赖项。 首先,你需要找到游戏引擎的依赖坐标信息。这通常可以在游戏引擎的官方文档或其它资源中找到。然后,在你的pom.xml文件的<dependencies>标签中添加相应的依赖项。例如: <dependencies> <dependency> <groupId>com.gameengine</groupId> <artifactId>engine</artifactId> <version>1.0.0</version> </dependency> </dependencies> 其中,<groupId>、<artifactId>和<version>分别代表依赖项的组、件和版本信息。你需要将这些信息替换为你要使用的游戏引擎的实际坐标信息。 接下来,保存pom.xml文件并运行Maven命令。Maven会自动下载并安装所需的依赖项到本地的仓库中。你可以在你的项目中使用这些引擎依赖项来编写游戏代码,实现各种功能,如渲染、输入、物理引擎等。 总的来说,使用Maven导入游戏引擎的依赖是很方便的。它可以帮助我们更好地管理项目的依赖,提高开发效率,简化项目的构建和部署过程。同时,它也能确保我们使用的是正确的版本,避免因引擎依赖版本不一致而引发的问题。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值