Spring

메이븐 Java 버전 설정

aim4fun 2019. 7. 1.

목차

반응형

Maven 컴파일 Java 버전 설정 방법 두 가지

 

1. 첫 번째 방법

<properties>
    <maven.compiler.target>1.8</maven.compiler.target>
    <maven.compiler.source>1.8</maven.compiler.source>
</properties>

2. 두 번째 방법

<plugins>
    <plugin>    
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
            <source>1.8</source>
            <target>1.8</target>
        </configuration>
    </plugin>
</plugins>

 

참고 사이트

https://www.baeldung.com/

'Spring' 카테고리의 다른 글

@Scheduled 어노테이션  (0) 2020.01.29
마이바티스 편집기(MyBatipse)  (0) 2019.09.05
Log4j2 - Logger 객체 생성방법  (0) 2019.09.05
Spring Oracle 연동( 오라클 11g 버전 기준)  (0) 2019.07.02
Tomcat startup.bat 한글 깨짐  (0) 2019.02.13

댓글