본문 바로가기
728x90
320x100
SMALL
[SpringBoot/스프링부트]org.apache.ibatis.binding.BindingException: 2024-08-06 20:20:43.336 ERROR 24088 --- [nio-8081-exec-4] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Type interface cohttp://m.malja.kiosk.copy.dao.loginDao is not known to the MapperRegistry.] with root causeorg.apa.. 2024. 8. 6.
[SpringBoot]o.s.b.d.LoggingFailureAnalysisReporter error 친절한 #스프링부트 ..에러를 친절하게 리포트해주었다APPLICATION FAILED TO START *************************** Description: Field ls in cohttp://m.malja.kiosk.controller.MainController required a bean of type 'cohttp://m.malja.kiosk.service.LoginService' that could not be found. The injection point has the following annotations:  #@org.springframework.beans.factory.annotation.Autowired(required=true) Action: Consider def.. 2024. 8. 6.
[키오스크만들기] 간단한 키오스크만들기(o.s.web.servlet.PageNotFound에러) 키오스크를 만들기 위한 setting프로퍼티스 세팅뷰를 위한 경로따기웹연결 성공템플릿찾아서 입히는중내 css?어디갔지? 매핑이 안되서... @Controller 어노테이션이 있는지 확인(있음 왜냐 화면은 보이고 있기떄문)@RequestMapping 의 경로가 틀리진 않았는지 확인(왜냐 화면이 보여서 맞음)servlet-context.xml 확인하기3-1. base-package의 경로가 틀리진 않았는지 확인3-2.  태그가 있는지 확인 경로 재확인${pageContext.request.contextPath }/resources/css/ 해주니까 먹음 ㅎㅎ 간단한 첫화면 완성~국룰 회원가입과 로그인제이쿼리 이용해서 로그인과 회원가입나누는 로직 생성$(document).ready(function(){  //.. 2024. 8. 5.
[SpringBoot]에러 org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/insert.html]" - line 11, col 36) html 파싱하다가 에러가 떳다 그래서 insert 안에 있는 저라인에 있는 문장을 다시봤더니 name을 두번씀.... 지웠더니 해결완료!!33 2023. 6. 27.
[SpringBoot]JPA로 간단한 게시판 만들기 ---1 간단한 셋팅 우선 이클립스는 spring starter project로 만들면 되고, 그 외 인텔리제이는 밑에 사이트에 들어가서 만들면 된다 https://start.spring.io/ 나는 그래들, 자바8버전으로 셋팅 하였다. 자바 버전때문에 제일 낮은 버전으로 선택하였고(버전에따라 충돌날 가능성 있으므로 찾아보고 할것) 데이터관리 즉 게터세터 만들기 귀찮아서 롬복 썼고, jpa 들어갔고, 오라클 드라이버를 쓰고, html에 타임리프 박는식으로 구성하였다. 지정했던 프로젝트이름의 프로젝트가 생성되면서 오른쪽 밑에 임포트가 계속 되어가고 있다. 끝이나면 우선 디비설계가 필요할 것이다. 간단한 디비를 짜보았다. 그리고나서 생성 create table boardtbl ( bno number(20) not null PRI.. 2023. 6. 27.
[Springboot/스프링부트]Lombok 라이브러리 by 인텔리제이 Lombok 게터,세터,ToString과 같은 반복적인 자바코드를 줄여주는 라이브러리 인텔리제이에서 설치하기 파일 - 셋팅에 들어간다 플러그인을 선택, 롬복을 검색해서 인스톨한다 저는 이미 설치해서 인스톨드에 뜨는데 그게아니면 설치한후 어플라이후 오케이를 누르면 된다 그 후 셋팅에 다시 들어가서 빌드 - 컴파일러 - 어노테이션 프로세서에서 인에이블어노테이션프로세싱을 누르고 오케이를 누른다. 그 후 pom.xml 에 들어가서 디펜던시를 추가합니다 org.projectlombok lombok 롬복을 꼭 디팬던시스 사이에 추가해줘야함 저장을 하게 되면 추가 되는 것을 확인해야한다. 디펜던시를 눌러서 들어가있는것을 확인할 수 있다. 롬복 라이브러리의 어노테이션들 @Getter and @Setter = 코드를 컴.. 2022. 8. 11.
[Springboot/스프링부트] 스프링부트로 말자네소소한일상 출력하기 package com.example.demo; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @SpringBootApplication @RestController // Restful Web Api를 좀더 쉽게 만들기 위해 스프링 프레임워크에 도입된 개념 // 컨트롤러와 레스폰스바디를 합쳐놓은 어노테이션임 //컨트롤러는 해당 .. 2022. 8. 11.
[Springboot/스프링부트]에러 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 간단한 스프링부트로 실행해보려고 했는데 실패했다. 디스크립션을 읽어보였다 Description: Web server failed to start. Port 8080 was already in use. Action: Identify and stop the process that's listening on port 8080 or configure this application to listen on another port. Disconnected from the target VM, address: '127.0.0.1:50676', transport: 'socket' Process finished with exit code 1 보니까 포트충돌이다. 어플리케이션 프로퍼티스에가서 서버포트를 수정해줬더니 잘돌아가는.. 2022. 8. 11.
[Springboot/스프링부트] application.properties application.properties 여러가지 설정값들을 정의하는 파일 src/main/sesources폴더에 생성 application-(프로필).properties로 설정파일을 보통 만듬 또한, 어플리케이션프로펄티스에 설정해둔 값을 자바코드에서 사용해야한다면 @Value 어노테이션을 통해 읽어올 수 있음 server.port = 8080 // 서버포트지정하기 나중에 크롬이면 localhost:8080에 띄울 수있음 application.name= demo // 어플리케이션 이름 지정, 설정해둔 어플리케이션 값을 읽어와서 자바 코드에서 사용해야하면 @Value 어노테이션을 통해 읽으면 됨 어플리케이션 프로퍼시에서 만들 수 있지만 다른 방법으로도 application.yml 파일을 사용할 수 있음 대.. 2022. 8. 11.
728x90
반응형
BIG