• 四。Hibernate 使用MAVEN工具


    maven工具的使用
    1.作用:打包项目以及jar包的版本管理
    2.使用步骤:
      a。下载maven工具,修改conf目录下的setting.xml文件
        <mirror>
          <id>alimaven</id>
          <name>aliyun maven</name>
          <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
          <mirrorOf>central</mirrorOf>
        </mirror>
      b.修改eclipse的maven配置
        window--preference--搜索maven--user setting--修改为maven根目录下的setting.xml文件--aply
      c。新建项目--右击项目名--Configer--convert to maven project
      d。修改项目中新出现的pom.xml。在这个xml中可以配置项目所需要的jar文件
        中央仓库搜索网址:https://mvnrepository.com/
    pom.xml:

    <dependencies>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>5.2.10.Final</version>
        </dependency>
    </dependencies>
  • 相关阅读:
    软工实践结对作业第二次
    团队展示
    软件工程结对作业
    软工实践第二次作业
    栈的初步学习
    课程作业四
    作业
    课程作业2
    博客汇总目录
    Mybatis-plus学习笔记,基于springboot
  • 原文地址:https://www.cnblogs.com/wlxslsb/p/10790728.html
Copyright © 2020-2023  润新知