springboot 的application.properties 一些常用的属性

spring.datasource.url=jdbc:oracle:thin:@localhost:1521:orcl
spring.datasource.username=scott
spring.datasource.password=tiger
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver

#日志的级别
logging.level.root=INFO
logging.level.org.springframework.web=INFO
logging.level.org.hibernate=INFO


mysource.url=jdbc:oracle:thin:@localhost:1521:orcl
mysource.username=scott
mysource.password=tiger
mysource.driverClassName=oracle.jdbc.OracleDriver

#tomcat 端口 上下文路径  字符集  request response UTF-8
server.port=8888
server.context-path=/sb
server.tomcat.uri-encoding=UTF-8
spring.http.encoding.charset=UTF-8

#http://localhost:8888/sb/health 查看springboot健康状况是否良好
#http://localhost:8888/sb/beans  类似于struts
#http://localhost:8888/sb/dump dump出线程和内存使用情况
#http://localhost:8888/sb/env  java和springboot的环境变量
#关闭actutor的安全认证
management.security.enabled=false
#启动url shutdown
endpoints.shutdown.enabled=true
#这个是传值给前台把他转成 下面那种格式的字符串
spring.jackson.time-zone=GMT+8
spring.jackson.date-format=yyyy-MM-dd

 
  

#启动url shutdown
endpoints.shutdown.enabled=true
要通过post去关闭可以远程关闭


     hello jsp
     
     




  4.0.0
  cn.et
  springboot
  0.0.1-SNAPSHOT
  
        org.springframework.boot
        spring-boot-starter-parent
        1.5.4.RELEASE
   
   
        
	    
	        org.springframework.boot
	        spring-boot-starter-web
	    
	    
	    
			org.springframework.boot
			spring-boot-starter-tomcat
			provided
		
		
			org.apache.tomcat.embed
			tomcat-embed-jasper
			provided
		
		
		
		
		    org.springframework.boot
		    spring-boot-starter-data-jpa
		
		
		    oracle
		    oracle
		    3.2.8
			system
		    C:\app\Administrator\product\11.2.0\dbhome_1\jdbc\lib\ojdbc6.jar
		
		
	    
			commons-dbcp
			commons-dbcp
			1.4
		
		
		
	        org.springframework.boot
	        spring-boot-starter-actuator
	    
	


 
 

你可能感兴趣的:(springboot)