무소의 뿔처럼

스프링부트) 현재 설정 올려둠 본문

알아두기/Spring

스프링부트) 현재 설정 올려둠

값을변경 2022. 8. 16. 09:44

build.gradle

// Path with "WEB-INF" or "META-INF" 에러남
implementation 'org.apache.tomcat.embed:tomcat-embed-jasper'

	//jsp
	implementation 'javax.servlet:jstl'
	implementation 'org.apache.tomcat.embed:tomcat-embed-jasper'

 

application.properties

server.port = 8090

#spring.mvc.view.prefix=/WEB-INF/views/ 
#spring.mvc.view.suffix=.jsp 

spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
spring.datasource.url=jdbc:oracle:thin:@localhost:1521/xe
spring.datasource.username=
spring.datasource.password=

#mybatis.mapper-locations=classpath:mybatis/**/**.xml 	
#mybatis.configuration.cache-enabled=false
#mybatis.configuration.jdbc-type-for-null=NULL

#devtools
spring.devtools.restart.enabled = false
#jpa
spring.jpa.open-in-view=false

 

h2 database, jpa

spring.datasource.url=jdbc:h2:tcp://localhost/~/test
spring.datasource.username=sa
spring.datasource.password=
spring.datasource.driver-class-name=org.h2.Driver

spring.h2.console.enabled=true
spring.h2.console.path=/h2-console


spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.jpa.hibernate.ddl-auto=create
spring.jpa.show-sql=true

logging.level.org.hibernate.type.descriptor.sql=TRACE

 

 

xml

<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">

 

 

html

window - preferences - html files - editor - Templates - 목록

그중 Description이 html5를 선택해 Edit, 아래 코드를 추가하여 Apply하면

html 파일을 새로 생성할때 추가되어 나옴.

<html xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:th="https://www.thymeleaf.org" 
	xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity5">

 

 

 

'알아두기 > Spring' 카테고리의 다른 글

Jackson Databind  (0) 2023.03.05
@InitBinder  (0) 2023.03.04
스트링부트) 오류 없이 잘 돌아가는데 DB에는 저장이 안된다. 혹시?  (0) 2022.09.03
스프링부트) 페이징..  (2) 2022.08.23
Maven repository 알아두기.  (0) 2022.07.07
Comments