Skip to content

Instantly share code, notes, and snippets.

View Walnussbaer's full-sized avatar

Volker Walnussbaer

View GitHub Profile
@msievers
msievers / [Spring Boot] Disable components for SpringBootTest tests by replacing them with mocks.md
Created February 15, 2019 09:01
[Spring Boot, Spock] Disable components for SpringBootTest tests by replacing them with mocks

Motivation

Annotating a test with @SpringBootTest will usally lead to initializing a Spring context with all components found by Springs component scan mechanism (usally all components of your app). Sometimes, you want some components to be excluded from component scan within your tests, for example

  • startup event listeners
  • setup code which configures external systems/apis/clients etc.
  • ...
@bsorrentino
bsorrentino / config-props.md
Created August 24, 2018 14:18 — forked from dsyer/config-props.md
Notes on Dynamic Configuration Properties

Dynamic Configuration Properties in Spring Boot and Spring Cloud

TL;DR

  • Use @ConfigurationProperties and always get state from the bean.
  • The Environment can change at runtime and Spring Cloud does this for you using RefreshEvent.
  • Changes are propagated to beans in Spring Cloud in 2 ways (@ConfigurationProperties and @RefreshScope).
  • If you care about the state of @ConfigurationProperties being consistent on concurrent access, put it or the consumer @Bean in @RefreshScope.

Typical Scenarios

@queckezz
queckezz / 00_overview.md
Last active September 15, 2022 11:22
An extensive excel vba documentation for creating large-scale apps without a total mess

Excel VBA

Many times you want to fiddle around with amazing tech like React or RustLang that are pushing the boundaries of what is possible. Back to the real world, there are still cases where an Excel sheet is more appropiate. Especially when companies previously built around it and have existing legacy code. Maybe the end user simply wants just one file to send per mail or move around. For this, Excel is still a viable option.

So for those people that are struggling with the limited vba language, this documentation aims to improve just a little bit of the developer experience while creating excel applications.

This may also partially apply to other office suite applications.

Feel free to send pull request with your Excel code that you found helpful or documentation additions.