Installing RSpec In this level we'll start by getting you setup on a regular Ruby project, then move onto using RSpec within Rails. Let's start by installing the rspec gem from the console. gem install rspec Command Line With the RSpec gem installed,…
Install RSpec: Describe Lets start writing a specification for the Tweet class. Write a describe block for the Tweet model without any examples inside it. #tweet.rb class Tweet end Answer: #tweet_spec.rb describe Tweet do end It Now create a pending…
原版:http://www.cubrid.org/blog/dev-platform/understanding-jdbc-internals-and-timeout-configuration 中文版: http://www.cnblogs.com/iceJava/p/4497763.html 备注:阅读了一遍,发现作者有蛮多重要的笔误,大家阅读的时候仔细点. An application with a proper JDBC timeout can cut down the failure…
原文地址:http://www.baeldung.com/spring-async 1. Overview In this article we’ll explore the asynchronous execution support in Spring – and the @Async annotation. Simply put – annotating a method of a bean with @Async will make it execute in a separate th…
Configuration Inserting log requests into the application code requires a fair amount of planning and effort. Observation shows that approximately 4 percent of code is dedicated to logging. Consequently, even moderately sized applications will have t…
Spring Boot How To 1. 简介 本章节将回答一些常见的"我该怎么做"类型的问题,这些问题在我们使用spring Boot时经常遇到.这绝不是一个详尽的列表,但它覆盖了很多方面. 如果遇到一个特殊的我们没有覆盖的问题,你可能想去查看stackoverflow.com 2. Spring Boot应用 2.1. 解决自动配置问题 Spring Boot自动配置总是尝试尽最大努力去做正确的事,但有时候会失败并且很难说出失败原因. 在每个Spring Boot Applica…