Youtube 메타코딩 - SpringBoot 강좌 참고 

 

[개발환경]

- jdk 1.8

- oracle 19c (oracle cloud adw)

- STS

  인코딩 설정 : Windows > Preferences > General > Workspace > Text file encoding > UTF-8

 

[프로젝트 설정]

[외부 라이브러리 추가]

Build Path - Configure Build Path - Java Build Path - 필요 라이브러리 추가

 

[pom.xml] 의존성 추가

		<!-- security -->
		<dependency>
			<groupId>org.springframework.security</groupId>
			<artifactId>spring-security-taglibs</artifactId>
		</dependency>
		<!-- JSP Template-->
		<dependency>
			<groupId>org.apache.tomcat.embed</groupId>
			<artifactId>tomcat-embed-jasper</artifactId>
		</dependency>
		<!-- JSTL -->
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>jstl</artifactId>
		</dependency>

: (주석처리) spring-boot-starter-security  spring-security-taglibs

 

[BlogControllerTest]

package com.jinseong.blog.test;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

//Spring이 com.jinseong.blog package 이하 
//특정 annotation 이 붙은 class 파일을 메모리에 Spring Container에서 관리
@RestController 
public class BlogControllerTest {
	@GetMapping("test/hello")
	public String hello(){
		return "hello spring boot";
	}
}

 

[oracle character-set 변경] 

select * from nls_database_paramEters WHERE parameter LIKE '%CHARACTERSET%';
update SYS.props$ SET value$='AL32UTF8' WHERE name = 'NLS_CHARACTERSET';
update SYS.props$ SET value$='AL16UTF16' WHERE name = 'NLS_NCHAR_CHARACTERSET';

 

[application.yml]

spring:
  datasource:
    driver-class-name: oracle.jdbc.driver.OracleDriver
    url: -
    username: blog
    password: -

'Project > Blog' 카테고리의 다른 글

Blog - 6.dummy data CURD + 예외처리  (491) 2022.05.24
Blog - 5. Model  (499) 2022.05.23
Blog - 4. yml setting  (470) 2022.05.23
Blog - 3. lombok setting  (485) 2022.05.23
Blog - 2. Http Request / Response  (506) 2022.05.22

+ Recent posts