1. 程式人生 > >黑馬十次方專案day01-11之base模組匯入jar包座標

黑馬十次方專案day01-11之base模組匯入jar包座標

文章目錄

建立base工程

在視訊的一開始,老師演示了不要用idea的模板來生成maven工程.
因為模組生成的東西,在pom檔案中會產生一堆不需要的內容.
而且還會在main包下少了resources包
下面還是使用原始的方式來建立子模組

此處直接點選next,不使用模板

模組名稱寫上tensquare_base

pom檔案中新增依賴

 <dependencies>
        <dependency>
            <
groupId
>
org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> </
dependency
>
<dependency> <groupId>com.tensquare</groupId> <artifactId>tensquare_common</artifactId> <version>1.0-SNAPSHOT</version> </dependency> </dependencies>