Skip to content

Instantly share code, notes, and snippets.

View snicoll's full-sized avatar
🍃
👨‍💻

Stéphane Nicoll snicoll

🍃
👨‍💻
View GitHub Profile
{"groups": [
{
"name": "server",
"type": "org.springframework.boot.autoconfigure.web.ServerProperties",
"sourceType": "org.springframework.boot.autoconfigure.web.ServerProperties"
},
{
"name": "server.tomcat",
"type": "org.springframework.boot.autoconfigure.web.ServerProperties$Tomcat",
"sourceType": "org.springframework.boot.autoconfigure.web.ServerProperties",
------------------------------------------------------------
Root project
------------------------------------------------------------
archives - Configuration for archive artifacts.
No dependencies
compile - Compile classpath for source set 'main'.
+--- org.springframework.cloud:spring-cloud-starter-eureka: -> 1.0.2.RELEASE

Configuration properties change between 1.2.4.RELEASE and 1.3.0.M1

The following keys were added:

Table 1. New keys in 1.3.0.M1

Key

Default value

Description

endpoints.cors.allow-credentials

Set whether credentials are supported.

endpoints.cors.allowed-headers

Comma-separated list of headers to allow in a request. '*' allows all headers.

endpoints.cors.allowed-methods

Comma-separated list of methods to allow. '*' allows all methods.

@snicoll
snicoll / gist:0d1ffcfbd38b24130d1a
Last active August 29, 2015 14:21
Spring Boot 1.3 documentation keys
Configuration key statistics
Advertized keys: 483
Repository items: 823
Matching items: 479
Unresolved items (found in documentation but not in generated metadata): 4
Undocumented items (found in generated metadata but not in documentation): 185
Unresolved items
----------------
package demo;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.convert.ConversionService;
Element type mismatch: IMPORT_STATEMENT!=CLASS; current modCount=13219; creation modCount=46
java.lang.RuntimeException: Element type mismatch: IMPORT_STATEMENT!=CLASS; current modCount=13219; creation modCount=46
at com.intellij.spring.model.jam.stereotype.SpringMetaStereotypeComponent.getPsiElement(SpringMetaStereotypeComponent.java:74)
at com.intellij.spring.model.jam.JamPsiClassSpringBean.getBeanClass(JamPsiClassSpringBean.java:43)
at com.intellij.spring.model.SimpleSpringBeanPointer.getBeanClass(SimpleSpringBeanPointer.java:49)
at com.intellij.spring.contexts.model.AbstractSimpleSpringModel.processByClass(AbstractSimpleSpringModel.java:136)
at com.intellij.spring.contexts.model.CachedLocalModel$6.process(CachedLocalModel.java:173)
at com.intellij.spring.contexts.model.CachedLocalModel$6.process(CachedLocalModel.java:170)
at com.intellij.spring.contexts.model.CachedLocalModel$5.compute(CachedLocalModel.java:144)
at com.intellij.spring.contexts.model.CachedLocalModel$5.compute(CachedLocalModel.java
java.lang.IllegalArgumentException: Argument for @NotNull parameter 't' of com/intellij/util/ObjectUtils._assertNotNull must not be null
at com.intellij.util.ObjectUtils._assertNotNull(ObjectUtils.java)
at com.intellij.util.ObjectUtils.assertNotNull(ObjectUtils.java:35)
at com.intellij.spring.index.SpringXmlBeansIndex.processBeansByClass(SpringXmlBeansIndex.java:193)
at com.intellij.spring.model.utils.search.executors.XmlBeanClassQueryExecutor.processQuery(XmlBeanClassQueryExecutor.java:29)
at com.intellij.spring.model.utils.search.executors.XmlBeanClassQueryExecutor.processQuery(XmlBeanClassQueryExecutor.java:19)
at com.intellij.openapi.application.QueryExecutorBase.execute(QueryExecutorBase.java:49)
at com.intellij.util.ExecutorsQuery.processResults(ExecutorsQuery.java:43)
at com.intellij.util.AbstractQuery.forEach(AbstractQuery.java:75)
at com.intellij.util.AbstractQuery.findFirst(AbstractQuery.java:52)

Keybase proof

I hereby claim:

  • I am snicoll on github.
  • I am snicoll (https://keybase.io/snicoll) on keybase.
  • I have a public key whose fingerprint is 82F8 3396 3889 D7ED 06F1 E4DC 6525 FD70 CC30 3655

To claim this, I am signing this object:

=======================================
Capabilities of https://start.spring.io
=======================================
Supported dependencies
+--------------------+-----------------------------------------------------------------------------------------------+----------------------+
| Id | Description | Availability |
+--------------------+-----------------------------------------------------------------------------------------------+----------------------+
| actuator | Production ready features to help you monitor and manage your application | |
| amqp | Support for the Advanced Message Queuing Protocol via spring-rabbit | |
@snicoll
snicoll / SPR-12584.adoc
Last active August 29, 2015 14:15
Core interceptors overhaul

Core interceptors overhaul

The Spring Framework has evolved over the years, introducing interceptors for various features such as caching and asynchronous method execution. The purpose of this document is to describe those interceptors and see what we can harmonize. It’s also a chance to look at a way to mutualize some processing and hopefully improve the processing time if need to be.

Interceptors

This summarizes the core interceptors that are defined by the framework

Table 1. Core interceptors