Skip to content

Instantly share code, notes, and snippets.

View christophstrobl's full-sized avatar

Christoph Strobl christophstrobl

View GitHub Profile
/*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@christophstrobl
christophstrobl / SO28504457
Created February 13, 2015 19:33
Stackoverflow-28504457
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = SomeConfig.class)
public class SO28504457 {
@Configuration
@EnableMongoRepositories(considerNestedRepositories = true)
public static class SomeConfig extends AbstractMongoConfiguration {
@Override
protected String getDatabaseName() {
@christophstrobl
christophstrobl / MappingJacksonResponseParser
Created June 4, 2014 13:21
Using json content format with solrJ
/*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@christophstrobl
christophstrobl / ITestSolrRepositoriesWithCustomBehavior.java
Created May 28, 2013 04:45
Add custom behavior to all SolrRepositories as described in Spring Data Commons reference manual
/*
* Copyright 2012 - 2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software