spring boot的application.properties提供了日志的配置,但我还是习惯于老的logback的使用方式。以下内容介绍如何在springboot中使用自定义的logback。1、在src/main/resources目录下创建logback.xml文件,内容如下: ...
分类:
编程语言 时间:
2015-12-15 21:09:34
阅读次数:
4256
在线项目构建:http://start.spring.io/下载:bookpub.zip导入Idea15.0.1运行:y@y:bookpub$ ./gradlew clean bootRuny@y:bookpub$ gradle clean bootRun . ____ _ __ _ _ /\\ /...
分类:
编程语言 时间:
2015-12-07 22:19:49
阅读次数:
186
在application.properties文件中,加入如下配置:spring.velocity.properties.input.encoding=UTF-8spring.velocity.properties.output.encoding=UTF-8
分类:
编程语言 时间:
2015-12-01 21:06:29
阅读次数:
1918
#?===================================================================
#?COMMON?SPRING?BOOT?PROPERTIES
#
#?This?sample?file?is?provided?as?a?guideline.?Do?NOT?copy?it?in?...
分类:
移动开发 时间:
2015-11-16 16:02:48
阅读次数:
204
白话Https一文中, 介绍了Https存在的目的和工作原理,但多是偏向于原理性的介绍,本文介绍如何一步一步自制一个能够通过浏览器认证的Https证书,并讲解在Spring Boot环境和Nginx环境中服务器端的配置。如果你还没有读过白话Https,我强烈建议你先去读一下。按照白话Https中的介...
分类:
编程语言 时间:
2015-11-09 20:37:18
阅读次数:
371
spring boot 使用tomcat服务器 PUT请求 Body中多了一个字段 会有明确的提示? {
??"code":?400,
??"error":?"Bad?Request",
??"message":?"Could?not?read?document:?Unrecognized?field?\"id\"?...
分类:
编程语言 时间:
2015-11-07 16:15:49
阅读次数:
659
一:事由现在的项目组开发项目使用的是Spring Boot的技术,开发的时候是直接通过一个入口主函数来启动项目的。如果将项目交给客户,怎样才能正确的发布运行呢?百度了一下有关的知识,大概了解到是通过导出jar包,直接运行来实现的。不过从网上查阅的资料,都不太理想,于是自己和另外一个同事就倒腾开了。倒...
分类:
编程语言 时间:
2015-10-31 13:05:32
阅读次数:
241
1. Spring boot 介绍 1. Spring boot 介绍 1. Spring boot 介绍 1. Spring boot 介绍 1. Spring boot 介绍 1. Spring boot 介绍 1. Spring boot 介绍 1. Spring boot 介绍 1. Spr...
分类:
编程语言 时间:
2015-10-21 17:25:19
阅读次数:
236
不了解druid,请参考这里。 新增文件: import?com.alibaba.druid.pool.DruidDataSource;
import?com.alibaba.druid.support.http.StatViewServlet;
import?com.alibaba.druid.support.http.WebStatFilter;
i...
分类:
编程语言 时间:
2015-10-16 15:32:49
阅读次数:
244