본문 바로가기
반응형

개발/springboot 게시판 만들기5

빈 등록 방식 - 컴포넌트 탐색 스프링 어플리케이션에서 빈을 등록하는 방식은 두가지. 1. 환경설정 클래스에서 직접 빈으로 등록 2. 플래그로 표시해서 스프링이 컴포넌트 탐색을 통해 자동으로 빈을 찾아내고 등록 어플리케이션이 실행되면 모든 빈은 어플리케이션 컨텍스트에 등록된다. https://doohong.github.io/2019/01/09/Spring-bean/ [Spring]빈 등록하기! 빈 등록 방법빈 등록 방법에는 크게 3가지 방법이 있다 XML을 이용한 빈 등록123 위와 같은 방법으로 xml 설정파일에 직접 등록할 수 있 doohong.github.io 2021. 9. 21.
[spring boot] jsp 사용하기 스프링부트는 경량의 웹개발 프로임 워크로 "spring-boot-starter-web"을 추가하여 내장 tomcat을 사용한다. 하지만, 내장 tomcat에는 JSP 엔진이 포함되어 있지 않으므로, JSP를 사용하기 위해서는 간단한 설정이 필요하다. - pom.xml에 디펜던시 추가 org.apache.tomcat.embed tomcat-embed-jasper provided javax.servlet jstl 2020. 6. 27.
[springboot 게시판만들기] 2. Hello World 화면출력 testController 를 만들고 test.html 화면에 간단하게 "Hello world"를 출력해 보도록 하자. controller 폴더를 만들고, 그안에 TestController.java 를 생성. package com.jny.jboard.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @Controller public class TestController { @RequestMapping(value = "/test") public String home(){ return "test.html"; } } src/main/res.. 2020. 6. 27.
[spring boot] Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. 오류 사황 *************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class Action: Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath. If you hav.. 2020. 6. 27.
[springboot 게시판만들기] 1. 프로젝트 생성 springboot, mybatis, sqlite, vue.js 를 사용해서 간단한 게시판을 만들어보자. 그 첫번째로 springboot 프로젝트 생성. springboot는 maven 기반으로 프로젝트를 만들면서, 생성과 동시에 몇가지 기본적인 라이브러리를 자동 생성하도록 설정할 수 있는데, spring web 과 mybatis를 선택 후 생성해 보았다. maven 을 통해 가져올 라이브러리를 설정하는 pom.xml 파일에 sqlite 관련 내용을 추가한다. org.xerial sqlite-jdbc 3.32.3 2020. 6. 26.
반응형