• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

JSR 303 애노테이션이 안나옵니다.

20.06.22 00:07 작성 조회수 144

0

따로 무엇을 적용해야하나요?? 강의에서는 딱히 그런거 없었는데 왜 안되는지 모르겠어요ㅠㅠ

인터넷 서칭해 보니까 dependency hibernate를 추가하라고 하는데 

쌤은 추가없이 사용하셔서 여쭤봅니다!!

참고로 spring framework boot는 2.3.0 릴리즈 사용하고 있습니다.

혹시 몰라서 pom.xml 내용 올립니다.

<?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.3.0.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>me.whiteship</groupId>
<artifactId>demo-web-mvc</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>demo-web-mvc</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-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>

답변 1

답변을 작성해보세요.

0