0
0
Spring Bootframework~10 mins

Multi-module project structure in Spring Boot - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define the parent project packaging type.

Spring Boot
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.example</groupId>
  <artifactId>parent-project</artifactId>
  <version>1.0.0</version>
  <packaging>[1]</packaging>
</project>
Drag options to blanks, or click blank then click option'
Awar
Bpom
Cear
Djar
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'jar' packaging for the parent project.
Confusing packaging types like 'war' or 'ear'.
2fill in blank
medium

Complete the code to include a module named 'service' in the parent POM.

Spring Boot
<modules>
  <module>[1]</module>
</modules>
Drag options to blanks, or click blank then click option'
Arepository
Bweb
Cservice
Dcommon
Attempts:
3 left
💡 Hint
Common Mistakes
Using module names that do not exist in the project.
Confusing module names with artifact IDs.
3fill in blank
hard

Fix the error in the child module POM to inherit from the parent project.

Spring Boot
<parent>
  <groupId>com.example</groupId>
  <artifactId>parent-project</artifactId>
  <version>[1]</version>
</parent>
Drag options to blanks, or click blank then click option'
A1.0.0
B1.0
Clatest
Dsnapshot
Attempts:
3 left
💡 Hint
Common Mistakes
Using incomplete or incorrect version strings.
Omitting the version tag.
4fill in blank
hard

Fill both blanks to define the parent and artifact IDs in a child module POM.

Spring Boot
<parent>
  <groupId>[1]</groupId>
  <artifactId>[2]</artifactId>
  <version>1.0.0</version>
</parent>
Drag options to blanks, or click blank then click option'
Acom.example
Bservice
Cparent-project
Dcom.service
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up groupId and artifactId values.
Using module names instead of parent project names.
5fill in blank
hard

Fill all three blanks to define a dependency in a child module POM.

Spring Boot
<dependency>
  <groupId>[1]</groupId>
  <artifactId>[2]</artifactId>
  <version>[3]</version>
</dependency>
Drag options to blanks, or click blank then click option'
Aorg.springframework.boot
Bspring-boot-starter-web
C3.0.5
Dcom.example
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect groupId or artifactId.
Omitting the version or using wrong version format.