PS C:\Users\iamhs\Downloads\shop> ./gradlew bootRun
> Task :compileJava FAILED
C:\Users\iamhs\Downloads\shop\src\main\java\com\apple\shop\sales\SalesController.java:3: error: cannot find symbol
import com.apple.shop.member.CustomUser;
^
symbol: class CustomUser
location: package com.apple.shop.member
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
> Run with --info option to get more log output.
> Run with --scan to get full insights.
BUILD FAILED in 1s
1 actionable task: 1 executed
PS C:\Users\iamhs\Downloads\shop>
변경사항 발견시 코드 재실행 기능 사용하고 싶어 ./gradlew build --continuous, ./gradlew bootRun 터미널에 실행하려는데 위와 같은 오류가 생깁니다.
(CustomUser.java)
package com.apple.shop.member;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;
import java.util.Collection;
public class CustomUser extends User {
public String displayName;
public Long id;
public CustomUser(String username,
String password,
Collection<? extends GrantedAuthority> authorities) {
super(username, password, authorities);
}
}
오른쪽 위에 Run 단축키로 실행할 땐 문제가 생기지 않는데 왜 ./gradlew bootRun 실행할때 문제가 생길까요?