The attribute onMethod_ is undefined for the annotation type Setter
> 프로젝트 자바 설정 1.8 OK
> lombok 설치 OK
> pom.xml 파일에서 자바 1.6 버전을 사용하고 있어서 1.8로 바꾸어 주었더니 해결
<?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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>test.hi</groupId> <artifactId>test</artifactId> <name>test</name> <packaging>war</packaging> <version>1.0.0-BUILD-SNAPSHOT</version> <properties> <java-version>1.8</java-version> <!-- 1.6 -> 1.8 -->
왜 자바 설치했다고 생각했는지?
>이거랑 헷갈림
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.5.1</version> <configuration> <source>1.8</source> <target>1.8</target> <compilerArgument>-Xlint:all</compilerArgument> <showWarnings>true</showWarnings> <showDeprecation>true</showDeprecation> </configuration> </plugin>
* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.