728x90
728x90
BIG
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.2</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
<artifactId>demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>demo</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>11</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
처음 스프링부트를 깔면 메이븐에 들어가 있는 디펜던시인데, 우선 스프링부트 최상위 모듈을 불러와서 스프링부트에 필요한 의존성을 ㄴ추가하고, 그 외에 웹어플리케이션에 필요한 라이브러리 불러옴.
pom.xml에 들어가면 디펜던시를 직접 추가할 수 있다.
그리고 그 라인으로가면 어떻게 의존이 되고 있는지 보여주고 있는 창
밑에 디펜던시를 눌러주면 의존성이 뭐가 들어와 있는지 확인 할 수 있다.
메이븐로컬경로확인하기
파일에 셋팅을 들어가거나 컨트롤 알트 에스를 누르면 셋팅창이 뜬다.
셋팅에 빌드툴에 메이블 들어가서 버전, 셋팅파일이 어디있는지 저장되는 레포지토리가 어딘지 확인할 수 있다.
C:\Users\82108\.m2\repository
꼬일 수 있으니까 프로젝트별로 레포지토리를 지정해놓으면 좋다
728x90
반응형
BIG
'🍁 Spring > 🍃SpringBoot' 카테고리의 다른 글
[Springboot/스프링부트]에러 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. (0) | 2022.08.11 |
---|---|
[Springboot/스프링부트] application.properties (0) | 2022.08.11 |
[Springboot]스프링부트프로젝트 생성하기! (0) | 2022.08.08 |
[Springboot]스프링부트 특징 (0) | 2022.08.08 |
[SpringBoot]스프링부트로 펜션예약페이지만들기!!(1일차) (0) | 2022.08.08 |
댓글