Java/Spring Boot(71)
-
STS 에러
Build path specifies execution environment JavaSE-11. There are no JREs installed in the workspace that are strictly compatible with this environment.버전이 맞지 않아서 발생한 경고메인 메뉴 > Window > Preferences > Java > Installed JREs > AddPC에 설치한 JAVA_HOME 디렉토리 셋팅rejected non-fast-forwardhttps://dogcowking.tistory.com/417 GIT PUSH 중 충돌 (rejected non-fast-forward)GIT PUSH 중 충돌 (rejected non-fast-forward) * 상황 ..
2022.01.31 -
Spring Boot 설치
STS 다운로드 : https://spring.io/tools Spring Tools 4 is the next generation of Spring tooling Largely rebuilt from scratch, Spring Tools 4 provides world-class support for developing Spring-based enterprise applications, whether you prefer Eclipse, Visual Studio Code, or Theia IDE. spring.io https://download.springsource.com/release/STS4/4.13.0.RELEASE/dist/e4.22/spring-tool-suite-4-4.13.0.RELEASE-..
2021.12.25 -
파일 UTF-8 셋팅
1. Window > Preferences > General > Content types Text Default encoding: UTF-8 2. Window > Preferences > General > Workspace Text file encoding Other: UTF-8
2021.09.12 -
Spring boot index.html 설정
http://localhost:8081로 접속시 index.html 화면이 나오도록 설정 @GetMapping("/") public String index() { return "forward:/index.html"; }
2021.04.05 -
Spring boot WebMvcConfigurer jsp 셋팅
'/WEB-INF/jsp/'에서 마지막에 '/'가 빠지면 인식 못함 import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.ViewResolverRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; @Configuration @ComponentScan public class WebConfig implements WebMvcConfigurer { @Override public void configureViewResolvers(ViewResolverRegis..
2021.04.05 -
WebMvcConfigurerAdapter is deprecated
Spring 5, Spring boot 2를 사용하면 발생 WebMvcConfigurer interface를 대신 사용하면 됨
2021.04.05