springboot 的application.properties 一些常用的属性
来源:互联网 发布:新浪数据nba 编辑:程序博客网 时间:2024/06/10 03:17
spring.datasource.url=jdbc:oracle:thin:@localhost:1521:orclspring.datasource.username=scottspring.datasource.password=tigerspring.datasource.driver-class-name=oracle.jdbc.OracleDriver#日志的级别logging.level.root=INFOlogging.level.org.springframework.web=INFOlogging.level.org.hibernate=INFOmysource.url=jdbc:oracle:thin:@localhost:1521:orclmysource.username=scottmysource.password=tigermysource.driverClassName=oracle.jdbc.OracleDriver#tomcat 端口 上下文路径 字符集 request response UTF-8server.port=8888server.context-path=/sbserver.tomcat.uri-encoding=UTF-8spring.http.encoding.charset=UTF-8#http://localhost:8888/sb/health 查看springboot健康状况是否良好#http://localhost:8888/sb/beans 类似于struts<s:debug>#http://localhost:8888/sb/dump dump出线程和内存使用情况#http://localhost:8888/sb/env java和springboot的环境变量#关闭actutor的安全认证management.security.enabled=false#启动url shutdownendpoints.shutdown.enabled=true
#这个是传值给前台把他转成 下面那种格式的字符串spring.jackson.time-zone=GMT+8spring.jackson.date-format=yyyy-MM-dd#启动url shutdownendpoints.shutdown.enabled=true要通过post去关闭可以远程关闭<body> hello jsp <form action="${pageContext.request.contextPath}/shutdown" method="post"> <input type="submit" value="关闭"/> </form> </body>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>cn.et</groupId> <artifactId>springboot</artifactId> <version>0.0.1-SNAPSHOT</version> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.4.RELEASE</version> </parent> <dependencies> <!-- 表示可以发布web程序 自动启动一个tomcat --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <!-- 添加转译jsp的jar --> <dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-tomcat</artifactId><scope>provided</scope></dependency><dependency><groupId>org.apache.tomcat.embed</groupId><artifactId>tomcat-embed-jasper</artifactId><scope>provided</scope></dependency><!-- 操作数据源 --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId></dependency><dependency> <groupId>oracle</groupId> <artifactId>oracle</artifactId> <version>3.2.8</version><scope>system</scope> <systemPath>C:\app\Administrator\product\11.2.0\dbhome_1\jdbc\lib\ojdbc6.jar</systemPath></dependency><!-- dbcp数据源 --> <dependency><groupId>commons-dbcp</groupId><artifactId>commons-dbcp</artifactId><version>1.4</version></dependency><!--健康检查的框架--><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency></dependencies></project>
阅读全文
0 0
- springboot 的application.properties 一些常用的属性
- Springboot的配置文件Application.properties
- springboot的application.properties配置
- application的一些属性
- SpringBoot属性配置实战(application.properties)
- SpringBoot常用配置 application.yml /application.properties常用配置介绍
- SpringBoot常用配置 application.yml /application.properties常用配置介绍
- springboot关于application的一些配置
- springboot 修改默认加载的配置文件不为application.properties
- SpringBoot获得application.properties中数据的几种方式
- SpringBoot Properties常用应用属性配置列表
- springBoot配置文件application.properties
- springboot application.properties详解
- SpringBoot 配置文件 application.properties
- springboot application.properties配置
- SpringBoot Common Application Properties
- Springboot属性文件application.properties配置大全,版本:1.5.4
- SpringBoot最常用的3种读取properties的方法
- IntelliJ Idea 2017 免费激活方法
- junit单元测试
- Android中沉浸式模式
- rdd是什么
- Swiper
- springboot 的application.properties 一些常用的属性
- java.util.zip
- 安卓之动画制作
- Java之集合、泛型
- 关于intent的学习
- 万能适配器(一)
- ubuntu16.04安装中文
- 为android系统添加USB AUDIO设备的放音和录音功能
- SolrCore配置