- 博客(12)
- 资源 (2)
- 收藏
- 关注
转载 windows下nginx的安装及基本使用
原文地址:https://www.cnblogs.com/saysmy/p/6609796.htmlnginx功能之一可以启动一个本地服务器,通过配置server_name和root目录等来访问目标文件一. 下载http://nginx.org/ 下载后解压 二. 修改配置文件nginx配置文件在 nginx-1.8.0\conf\nginx.confhttp { gzip on;...
2018-06-28 19:38:37 246
转载 Spring Boot Actuator 使用
原文地址:https://www.jianshu.com/p/af9738634a21Spring Boot 的 Actuator 提供了很多生产级的特性,比如监控和度量Spring Boot 应用程序。Actuator 的这些特性可以通过众多 REST 接口、远程 shell 和 JMX 获得。一、Actuator 的 REST 接口Spring Boot Actuator 的关键特性是在应用程...
2018-06-27 17:32:35 415
原创 Spring Boot Actuator监控端点无法访问
Spring Boot 版本为:1.5.13.RELEASE项目中导入spring-boot-starter-actuator后,actuator提供默认端点无返回数据或显示错误页面无返回数据:显示错误页面:只需在application.properties中添加配置:management.security.enabled=false即可解决...
2018-06-27 17:28:43 3127
转载 logback 日志信息持久化
想要把日志异步保存到数据库中,首先需要创建一个数据库,然后创建三张固定的表:https://github.com/xiaorenwu-dashijie/logback.gitDROP TABLE IF EXISTS `logging_event`;CREATE TABLE `logging_event` ( `timestmp` bigint(20) NOT NULL, `formatt...
2018-06-22 11:43:34 1129 1
转载 spring aop注解详解
原文地址:https://www.cnblogs.com/lixuwu/p/5804793.htmlAOP称为面向切面编程,在程序开发中主要用来解决一些系统层面上的问题,比如日志,事务,权限等待,Struts2的拦截器设计就是基于AOP的思想,是个比较经典的例子。一 AOP的基本概念(1)Aspect(切面):通常是一个类,里面可以定义切入点和通知(2)JointPoint(连接点):程序执行过程...
2018-06-21 14:40:31 28409 1
原创 Spring Boot学习笔记:日志管理
默认日志格式2018-06-20 15:26:41.099 INFO 10524 --- [ main] com.tanwubo.LoggingDemoApplicationTests : Starting LoggingDemoApplicationTests on USER-20170416AY with PID 10524 (started by Administra...
2018-06-20 16:44:09 187
转载 springdata jpa使用Example快速实现动态查询
原文地址:https://blog.csdn.net/long476964/article/details/79677526Example官方介绍Query by Example (QBE) is a user-friendly querying technique with a simple interface. It allows dynamic query creation and does...
2018-06-15 17:44:36 2760
转载 spring boot 整合 redis基本使用
1、 添加maven依赖<!-- redis --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId></dependency&
2018-06-15 11:31:10 261
转载 linux下安装mysql
原文地址:https://www.cnblogs.com/bookwed/p/5896619.html安装环境:系统是 centos6.51、下载 下载地址:http://dev.mysql.com/downloads/mysql/5.6.html#downloads 下载版本:我这里选择的5.6.33,通用版,linux下64位 也可以直接复制64位的下载地址,通过命令下载:w...
2018-06-14 14:40:25 324
转载 几种API调用认证方案浅析
原文地址:https://www.cnblogs.com/Sinte-Beuve/p/7822856.html1. 类似HTTP Basic Authentication随意在网上搜索公共API服务,比如下图中的百度基站查询的接口。这种接口一般付费之后会获取到一个apikey,通过apikey进行请求。和HTTP Basic Authentication类似,需要把apikey这个字段写入HTTP...
2018-06-12 11:25:35 11179 1
原创 Spring Boot使用MockMvc测试时的一次小坑
一个基本的RESTful API小案例,正常启动Spring Boot无异常,接口访问全部正常通过。在其他配置全部一致的情况下,使用MockMvc进行测试抛出异常:org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPoin...
2018-06-08 17:48:09 6434 4
转载 JAVA编程思想笔记
1. Java中的多态性理解(注意与C++区分)Java中除了static方法和final方法(private方法本质上属于final方法,因为不能被子类访问)之外,其它所有的方法都是动态绑定,这意味着通常情况下,我们不必判定是否应该进行动态绑定—它会自动发生。final方法会使编译器生成更有效的代码,这也是为什么说声明为final方法能在一定程度上提高性能(效果不明显)。如果某个方法是静态的,它...
2018-06-07 11:32:19 88
Spring Boot WEB基本框架
2018-06-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人