一区二区三区在线-一区二区三区亚洲视频-一区二区三区亚洲-一区二区三区午夜-一区二区三区四区在线视频-一区二区三区四区在线免费观看

服務(wù)器之家:專注于服務(wù)器技術(shù)及軟件下載分享
分類導(dǎo)航

PHP教程|ASP.NET教程|Java教程|ASP教程|編程技術(shù)|正則表達(dá)式|C/C++|IOS|C#|Swift|Android|JavaScript|易語(yǔ)言|

服務(wù)器之家 - 編程語(yǔ)言 - Java教程 - IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法

IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法

2021-07-14 16:05silentwolfyh Java教程

這篇文章主要介紹了IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法,小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧

###1、需求

1、intellij idea打開(kāi)多個(gè)項(xiàng)目
2、每個(gè)同學(xué)開(kāi)發(fā)一個(gè)項(xiàng)目,相互之前獨(dú)立不影響
3、通過(guò)一個(gè)入口可以調(diào)用所有項(xiàng)目類、方法、屬性,達(dá)到同時(shí)開(kāi)發(fā)且檢測(cè)代碼
4、dependency只需要寫一份,其余項(xiàng)目不用寫,便可全部依賴

###2、注意事項(xiàng)(非常重要)

6個(gè)坑:

1、<groupid>com.yh.bi</groupid>
項(xiàng)目中所有的groupid要一樣

2、避免循環(huán)依賴,導(dǎo)致程序報(bào)錯(cuò)

3、<scope>provided</scope>
打包的服務(wù)器運(yùn)行時(shí)候需要provided,本機(jī)調(diào)試的時(shí)候,需要注釋
在一個(gè)maven項(xiàng)目中,如果存在編譯需要而發(fā)布不需要的jar包,可以用scope標(biāo)簽,值設(shè)為provided

IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法

IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法

4、項(xiàng)目、module建好之后需要添加scala的框架支持

IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法

5、在yhproject中,可以統(tǒng)一對(duì)所有的module進(jìn)行清理、編譯、打包

IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法

6、要運(yùn)行依賴中的module,則必須要將module中的jar包,打到maven中,需要使用install

下面,是我將所有module中的jar打到maven中的路徑:

IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法

IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法

###3、建立project和建立module

1、只需要建立一個(gè)項(xiàng)目,其他項(xiàng)目由module建立,所有module且放在項(xiàng)目中。
2、本文項(xiàng)目為yhproject,其余都為module,分別是:mainentrance、yhutils、yhapp、yhweb、yhgame

項(xiàng)目建立步鄹:

IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法

IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法

IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法

IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法

module建立步鄹:

IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法

IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法

IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法

項(xiàng)目、所有module、部分module代碼展示:

IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法

IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法

###4、項(xiàng)目之前的依賴關(guān)系

IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法

###5、代碼展示

mainentrance

package com.yh.bi.dag

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
package com.yh.bi.dag
 
/**
 * created by yuhui on 2017/2/10.
 */
import java.time.{duration, localdate}
import com.yh.bi._
import com.yh.bi.{userapp, usergame, userweb}
import org.slf4j.loggerfactory
 
import scala.collection.immutable.{listmap, listset}
 
/**
 * created by yuhui on 2016/8/25.
 * task --> node --> dag --> dagexecutor
 */
 
case class node[t](task: t, parent: t*) {
 override def tostring: string = {
 s"$task(${parent.mkstring(",")})"
 }
}
 
case class dag[t](nodes: node[t]*)
 
case class dagexecutor[t](dag: dag[t]) {
 private val log = loggerfactory.getlogger(this.getclass)
 private val _nodes: map[t, seq[t]] = dag.nodes.map(node => (node.task, node.parent.filter(_ != null))).tomap
 private var _pending: set[t] = listset()
 private var _fails = listmap[t, string]()
 private var _success = seq[t]()
 
 //判斷node的task節(jié)點(diǎn)的父節(jié)點(diǎn)運(yùn)行狀態(tài)(flase ,true)
 private def getpending: option[t] = {
 _pending.find { name =>
  val parents = _nodes(name)
  !parents.exists(name => !_success.contains(name))
 }
 }
 
 private def fail(name: t, message: string): unit = {
 _pending -= name
 _fails += name -> message
 for (child <- _pending.filter(child => _nodes(child).contains(name))) {
  fail(child, s"依賴的任務(wù)無(wú)法執(zhí)行: $name")
 }
 }
 
 private def success(name: t): unit = {
 _pending -= name
 _success = _success :+ name
 }
 
 def execute(func: t => unit): unit = {
 _pending = _nodes.keyset
 _fails = listmap()
 _success = seq()
 var running = true
 
 while (running) {
  val taskopt = getpending
  if (taskopt.nonempty) {
  val task = taskopt.get
  val startmills = system.currenttimemillis()
  log.info("start task {}", task)
  try {
   println("=============")
   func(task) //執(zhí)行executor方法
   println("+++++++++++++")
   val time = duration.ofmillis(system.currenttimemillis() - startmills)
   log.info(s"end task $task time=$time")
   success(task)
  } catch {
   case e: throwable => fail(task, e.getmessage)
   log.error(e.getmessage, e)
   log.info(s"fail task $task")
  }
  } else {
  running = false
  }
 }
 
 for (name <- _success) {
  log.info(s"success task: $name")
 }
 for (name <- _fails) {
  log.info(s"fail task: ${name._1} - ${name._2}")
 }
 }
}
 
object dag {
 val allsdkdag = new dag[task](
 node(userapp),
 node(usergame),
 node(userweb)
 )
 
 def main(args: array[string]): unit = {
 dagexecutor(allsdkdag).execute { task =>task.executor("appkey": string, localdate.now(), localdate.now())}
 }
}

yhutils

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.yh.bi
 
/**
 * created by yuhui on 2017/2/10.
 */
import java.time.localdate
import org.apache.spark.sql.sqlcontext
import org.slf4j.loggerfactory
 
abstract class executor extends task with sqlcontextaware {
 
 override def run(appkey: string, startday: localdate, endday: localdate)={}
 
}
 
trait sqlcontextaware {
 implicit var ctx: sqlcontext = _
}
 
 
abstract class task {
 
 protected val log = loggerfactory.getlogger(this.getclass)
 
 def executor(appkey: string, startday: localdate, endday: localdate): unit
 
 def run(appkey: string, startday: localdate, endday: localdate): unit = {
 executor(appkey, startday, endday)
 }
 
}

yhapp

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.yh.bi
 
/**
 * created by yuhui on 2017/2/10.
 */
import java.time.localdate
 
object userapp extends executor{
 
 override def executor(appkey: string, startday: localdate, endday: localdate): unit = {
 
 println("++++我的userapp的執(zhí)行過(guò)程++++")
 
 }
 
}

yhweb

?
1
2
3
4
5
6
7
8
9
10
11
12
13
package com.yh.bi
 
import java.time.localdate
 
object userweb extends executor{
 
 override def executor(appkey: string, startday: localdate, endday: localdate): unit = {
 
 println("++++我的userweb的執(zhí)行過(guò)程++++")
 
 }
 
}

yhgame

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.yh.bi
 
/**
 * created by yuhui on 2017/2/10.
 */
import java.time.localdate
 
object usergame extends executor{
 
 override def executor(appkey: string, startday: localdate, endday: localdate): unit = {
 
 println("++++我的usergame的執(zhí)行過(guò)程++++")
 
 }
 
}

###6、項(xiàng)目中pom依賴展示

yhproject中pom文件展示:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/pom/4.0.0"
   xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"
   xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 
 <modelversion>4.0.0</modelversion>
 <groupid>com.yh.bi</groupid>
 <artifactid>yhproject</artifactid>
 <packaging>pom</packaging>
 <version>1.0</version>
 
 <modules>
  <module>mainentrance</module>
  <module>yhapp</module>
  <module>yhweb</module>
  <module>yhgame</module>
  <module>yhutils</module>
 </modules>
</project>

mainentrance中pom文件展示:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/pom/4.0.0"
   xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"
   xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 <modelversion>4.0.0</modelversion>
 <artifactid>mainentrance</artifactid>
 <groupid>com.yh.bi</groupid>
 <version>1.0</version>
 
 <dependencies>
  <dependency>
   <artifactid>yhutils</artifactid>
   <groupid>com.yh.bi</groupid>
   <version>1.0</version>
   <!--<scope>provided</scope> //本機(jī)調(diào)試則注釋, 集群運(yùn)行則解開(kāi)-->
  </dependency>
 
  <dependency>
   <artifactid>yhapp</artifactid>
   <groupid>com.yh.bi</groupid>
   <version>1.0</version>
   <!--<scope>provided</scope>-->
  </dependency>
 
  <dependency>
   <artifactid>yhgame</artifactid>
   <groupid>com.yh.bi</groupid>
   <version>1.0</version>
   <!--<scope>provided</scope>-->
  </dependency>
 
  <dependency>
   <artifactid>yhweb</artifactid>
   <groupid>com.yh.bi</groupid>
   <version>1.0</version>
   <!--<scope>provided</scope>-->
  </dependency>
 </dependencies>
 
 <build>
  <plugins>
   <plugin>
    <groupid>org.apache.maven.plugins</groupid>
    <artifactid>maven-compiler-plugin</artifactid>
    <configuration>
     <source>1.8</source>
     <target>1.8</target>
    </configuration>
   </plugin>
   <plugin>
    <groupid>org.apache.maven.plugins</groupid>
    <artifactid>maven-shade-plugin</artifactid>
    <version>2.4</version>
    <configuration>
     <filters>
      <filter>
       <artifact>*:*</artifact>
       <excludes>
        <exclude>**/log4j2.*</exclude>
        <exclude>meta-inf/*.sf</exclude>
        <exclude>meta-inf/*.dsa</exclude>
        <exclude>meta-inf/*.rsa</exclude>
       </excludes>
      </filter>
     </filters>
     <!-- put your configurations here -->
    </configuration>
    <executions>
     <execution>
      <phase>package</phase>
      <goals>
       <goal>shade</goal>
      </goals>
      <configuration>
       <outputfile>${project.build.directory}/${project.artifactid}.jar
       </outputfile>
      </configuration>
     </execution>
    </executions>
   </plugin>
 
  </plugins>
 
  <sourcedirectory>src/main/scala</sourcedirectory>
  <resources>
   <resource>
    <directory>${basedir}/src/main/resources</directory>
    <includes>
     <include>**/*</include>
    </includes>
   </resource>
  </resources>
 
 </build>
 
 
</project>

yhutils中pom文件展示:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/pom/4.0.0"
   xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"
   xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 <parent>
  <artifactid>yhproject</artifactid>
  <groupid>com.yh.bi</groupid>
  <version>1.0</version>
 </parent>
 
 <modelversion>4.0.0</modelversion>
 <artifactid>yhutils</artifactid>
 
 <dependencies>
  <dependency>
   <groupid>org.apache.spark</groupid>
   <artifactid>spark-hive_2.11</artifactid>
   <version>1.6.1</version>
  </dependency>
 </dependencies>
 
 <build>
  <plugins>
   <plugin>
    <groupid>org.apache.maven.plugins</groupid>
    <artifactid>maven-compiler-plugin</artifactid>
    <configuration>
     <source>1.8</source>
     <target>1.8</target>
    </configuration>
   </plugin>
   <plugin>
    <groupid>org.apache.maven.plugins</groupid>
    <artifactid>maven-shade-plugin</artifactid>
    <version>2.4</version>
    <configuration>
     <filters>
      <filter>
       <artifact>*:*</artifact>
       <excludes>
        <exclude>**/log4j2.*</exclude>
        <exclude>meta-inf/*.sf</exclude>
        <exclude>meta-inf/*.dsa</exclude>
        <exclude>meta-inf/*.rsa</exclude>
       </excludes>
      </filter>
     </filters>
     <!-- put your configurations here -->
    </configuration>
    <executions>
     <execution>
      <phase>package</phase>
      <goals>
       <goal>shade</goal>
      </goals>
      <configuration>
       <outputfile>${project.build.directory}/${project.artifactid}.jar
       </outputfile>
      </configuration>
     </execution>
    </executions>
   </plugin>
 
  </plugins>
 
  <sourcedirectory>src/main/scala</sourcedirectory>
  <resources>
   <resource>
    <directory>${basedir}/src/main/resources</directory>
    <includes>
     <include>**/*</include>
    </includes>
   </resource>
  </resources>
 
 </build>
</project>

yhapp中pom文件展示:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/pom/4.0.0"
   xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"
   xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 
 <modelversion>4.0.0</modelversion>
 <groupid>com.yh.bi</groupid>
 <artifactid>yhapp</artifactid>
 <version>1.0</version>
 
 <dependencies>
  <dependency>
   <artifactid>yhutils</artifactid>
   <groupid>com.yh.bi</groupid>
   <version>1.0</version>
   <scope>provided</scope>
  </dependency>
 </dependencies>
 <build>
  <plugins>
   <plugin>
    <groupid>org.apache.maven.plugins</groupid>
    <artifactid>maven-compiler-plugin</artifactid>
    <configuration>
     <source>1.8</source>
     <target>1.8</target>
    </configuration>
   </plugin>
   <plugin>
    <groupid>org.apache.maven.plugins</groupid>
    <artifactid>maven-shade-plugin</artifactid>
    <version>2.4</version>
    <configuration>
     <filters>
      <filter>
       <artifact>*:*</artifact>
       <excludes>
        <exclude>**/log4j2.*</exclude>
        <exclude>meta-inf/*.sf</exclude>
        <exclude>meta-inf/*.dsa</exclude>
        <exclude>meta-inf/*.rsa</exclude>
       </excludes>
      </filter>
     </filters>
     <!-- put your configurations here -->
    </configuration>
    <executions>
     <execution>
      <phase>package</phase>
      <goals>
       <goal>shade</goal>
      </goals>
      <configuration>
       <outputfile>${project.build.directory}/${project.artifactid}.jar
       </outputfile>
      </configuration>
     </execution>
    </executions>
   </plugin>
 
  </plugins>
 
  <sourcedirectory>src/main/scala</sourcedirectory>
  <resources>
   <resource>
    <directory>${basedir}/src/main/resources</directory>
    <includes>
     <include>**/*</include>
    </includes>
   </resource>
  </resources>
 
 </build>
 
</project>

yhweb中pom文件展示:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/pom/4.0.0"
   xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"
   xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 
 <modelversion>4.0.0</modelversion>
 <groupid>com.yh.bi</groupid>
 <artifactid>yhweb</artifactid>
 <version>1.0</version>
 
 <dependencies>
  <dependency>
   <artifactid>yhutils</artifactid>
   <groupid>com.yh.bi</groupid>
   <version>1.0</version>
   <scope>provided</scope>
  </dependency>
 </dependencies>
 <build>
  <plugins>
   <plugin>
    <groupid>org.apache.maven.plugins</groupid>
    <artifactid>maven-compiler-plugin</artifactid>
    <configuration>
     <source>1.8</source>
     <target>1.8</target>
    </configuration>
   </plugin>
   <plugin>
    <groupid>org.apache.maven.plugins</groupid>
    <artifactid>maven-shade-plugin</artifactid>
    <version>2.4</version>
    <configuration>
     <filters>
      <filter>
       <artifact>*:*</artifact>
       <excludes>
        <exclude>**/log4j2.*</exclude>
        <exclude>meta-inf/*.sf</exclude>
        <exclude>meta-inf/*.dsa</exclude>
        <exclude>meta-inf/*.rsa</exclude>
       </excludes>
      </filter>
     </filters>
     <!-- put your configurations here -->
    </configuration>
    <executions>
     <execution>
      <phase>package</phase>
      <goals>
       <goal>shade</goal>
      </goals>
      <configuration>
       <outputfile>${project.build.directory}/${project.artifactid}.jar
       </outputfile>
      </configuration>
     </execution>
    </executions>
   </plugin>
 
  </plugins>
 
  <sourcedirectory>src/main/scala</sourcedirectory>
  <resources>
   <resource>
    <directory>${basedir}/src/main/resources</directory>
    <includes>
     <include>**/*</include>
    </includes>
   </resource>
  </resources>
 
 </build>
 
</project>

yhgame中pom文件展示:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/pom/4.0.0"
   xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"
   xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 
 <modelversion>4.0.0</modelversion>
 <groupid>com.yh.bi</groupid>
 <artifactid>yhgame</artifactid>
 <version>1.0</version>
 
 <dependencies>
  <dependency>
   <artifactid>yhutils</artifactid>
   <groupid>com.yh.bi</groupid>
   <version>1.0</version>
   <scope>provided</scope>
  </dependency>
 </dependencies>
  <build>
  <plugins>
   <plugin>
    <groupid>org.apache.maven.plugins</groupid>
    <artifactid>maven-compiler-plugin</artifactid>
    <configuration>
     <source>1.8</source>
     <target>1.8</target>
    </configuration>
   </plugin>
   <plugin>
    <groupid>org.apache.maven.plugins</groupid>
    <artifactid>maven-shade-plugin</artifactid>
    <version>2.4</version>
    <configuration>
     <filters>
      <filter>
       <artifact>*:*</artifact>
       <excludes>
        <exclude>**/log4j2.*</exclude>
        <exclude>meta-inf/*.sf</exclude>
        <exclude>meta-inf/*.dsa</exclude>
        <exclude>meta-inf/*.rsa</exclude>
       </excludes>
      </filter>
     </filters>
     <!-- put your configurations here -->
    </configuration>
    <executions>
     <execution>
      <phase>package</phase>
      <goals>
       <goal>shade</goal>
      </goals>
      <configuration>
       <outputfile>${project.build.directory}/${project.artifactid}.jar
       </outputfile>
      </configuration>
     </execution>
    </executions>
   </plugin>
 
  </plugins>
 
  <sourcedirectory>src/main/scala</sourcedirectory>
  <resources>
   <resource>
    <directory>${basedir}/src/main/resources</directory>
    <includes>
     <include>**/*</include>
    </includes>
   </resource>
  </resources>
 
 </build>
 
</project>

###7、運(yùn)行結(jié)果展示

注意:我在mainentrance執(zhí)行dag中的main文件,可以調(diào)用且執(zhí)行了yhutils、yhapp、yhweb、yhgame中的代碼

IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法

###8、如果建立java 的module

IntelliJ IDEA打開(kāi)多個(gè)Maven的module且相互調(diào)用代碼的方法

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持服務(wù)器之家。

原文鏈接:https://blog.csdn.net/silentwolfyh/article/details/54970108?utm_source=blogxgwz2

延伸 · 閱讀

精彩推薦
  • Java教程Trie樹(shù)(字典樹(shù))的介紹及Java實(shí)現(xiàn)

    Trie樹(shù)(字典樹(shù))的介紹及Java實(shí)現(xiàn)

    Trie樹(shù),又稱字典樹(shù)或前綴樹(shù),關(guān)于它的結(jié)構(gòu)就不詳細(xì)介紹了。Trie樹(shù)在單詞統(tǒng)計(jì)、前綴匹配等很多方面有很大用處。下面這篇文章主要介紹了Trie樹(shù),以及...

    小樓一夜聽(tīng)春雨6192020-08-02
  • Java教程Java集合類中文介紹

    Java集合類中文介紹

    本文首先對(duì)Java集合類框架做了簡(jiǎn)單說(shuō)明,之后對(duì)主要類和為API做了介紹:Collection、List、Set、AbstractCollection、AbstractList、AbstractSet、Iterator、ListIterator。 ...

    java教程網(wǎng)5692019-10-18
  • Java教程JAVA實(shí)現(xiàn)JSON后端向前端傳遞數(shù)據(jù)

    JAVA實(shí)現(xiàn)JSON后端向前端傳遞數(shù)據(jù)

    本篇文章主要介紹了JAVA實(shí)現(xiàn)JSON后端向前端傳遞數(shù)據(jù),這里整理了詳細(xì)的代碼,具有一定的參考價(jià)值,有需要的小伙伴可以參考下。...

    橙子wj7852020-08-25
  • Java教程SpringBoot結(jié)合SpringSecurity實(shí)現(xiàn)圖形驗(yàn)證碼功能

    SpringBoot結(jié)合SpringSecurity實(shí)現(xiàn)圖形驗(yàn)證碼功能

    這篇文章主要介紹了SpringBoot + SpringSecurity 實(shí)現(xiàn)圖形驗(yàn)證碼功能,小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧...

    whyalwaysmea11942021-05-05
  • Java教程如何配置Eclipse實(shí)現(xiàn)定制登錄界面

    如何配置Eclipse實(shí)現(xiàn)定制登錄界面

    本文介紹了如何配置Eclipse實(shí)現(xiàn)定制登錄界面,每一步的講解都很細(xì)致,感興趣的小伙伴可以閱讀一下 ...

    高文龍5792019-12-28
  • Java教程java 中JXL操作Excel實(shí)例詳解

    java 中JXL操作Excel實(shí)例詳解

    這篇文章主要介紹了java 中JXL操作Excel實(shí)例詳解的相關(guān)資料,需要的朋友可以參考下...

    Java教程網(wǎng)4402020-09-09
  • Java教程Hadoop之NameNode Federation圖文詳解

    Hadoop之NameNode Federation圖文詳解

    今天小編就為大家分享一篇關(guān)于Hadoop之NameNode Federation圖文詳解,小編覺(jué)得內(nèi)容挺不錯(cuò)的,現(xiàn)在分享給大家,具有很好的參考價(jià)值,需要的朋友一起跟隨小編...

    431937977302021-07-01
  • Java教程Java雇員管理小項(xiàng)目

    Java雇員管理小項(xiàng)目

    這篇文章主要為大家詳細(xì)介紹了Java雇員管理小項(xiàng)目,理解面向?qū)ο缶幊?,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下...

    馬江河9232021-03-27
主站蜘蛛池模板: 好大水好多好爽好硬好深视频 | 亚洲国产情侣偷自在线二页 | 精品夜夜澡人妻无码AV蜜桃 | 2020年国产精品午夜福利在线观看 | 99ri在线精品视频在线播放 | 四虎影视在线影院在线观看 | 草莓在深夜释放自己软件 | 国产青草亚洲香蕉精品久久 | 亚洲国产一区二区a毛片 | 国产一区二区免费在线 | 美女被扒开屁股进去网 | 国产婷婷高清在线观看免费 | 12-14娇小videos| 精品视频国产 | 暖暖 免费 高清 中文 日本 | 国产综合欧美日韩视频一区 | 毛片免费全部免费观看 | 狠狠做五月深爱婷婷天天综合 | www.天天操| 亚洲一区二区三区免费视频 | 久久精品国产欧美日韩99热 | 午夜视频一区二区三区 | 毛片免费观看 | 欧美色成人tv在线播放 | 久久成人永久免费播放 | 国产欧美一区二区三区久久 | 免费一级国产大片 | 亚洲日日做天天做日日谢 | 亚洲欧美日本在线观看 | 久久久GOGO无码啪啪艺术 | 欧美日韩一区二区三区免费 | 99国产精品免费视频 | 操比图片| 小舞丝袜调教喷水沦为肉奴 | 亚洲视频在线观看不卡 | 十六以下岁女子毛片免费 | 国产三级自拍 | 91久久综合九色综合欧美98 | 国产毛片在线高清视频 | 日本中出视频 | 亚洲一二三区久久五月天婷婷 |