springboot에 적용됩니다.properties의 기본 설정

# 
server.port=8089

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

# url/driver/username/password
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/test
spring.datasource.username=root
spring.datasource.password=root

#oracle
#spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
#spring.datasource.url=jdbc:oracle:thin:@127.0.0.1:1521:xe
#spring.datasource.username=oracl
#spring.datasource.password=oracl

#alibaba 
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource

#mybatis
mybatis.mapper-locations=classpath:mapper/*.xml
mybatis.type-aliases-package=com.test.model
# 
mybatis.configuration.mapUnderscoreToCamelCase=true
# 
logging.level.com.entor.dao=debug


#-----JPA---------
# DBMS
spring.jpa.database=MYSQL
# 
spring.jpa.show-sql=true
#hibernate (create,create-drop,update,none)
spring.jpa.hibernate.ddl.auto=update
#naming strategy
spring.jpa.hibernate.naming-strategy=org.hibernate.cfg.DefaultNamingStrategy
# 
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect












좋은 웹페이지 즐겨찾기