e-breuninger / spring-boot-starter-breuninger Goto Github PK
View Code? Open in Web Editor NEWCollection of independent libraries on top of Spring Boot to provide a faster setup of jvm microservices.
License: Other
Collection of independent libraries on top of Spring Boot to provide a faster setup of jvm microservices.
License: Other
You should be able to configure a MongoDB connection URI (e.g. from Mongo Atlas API) which is then used instead of individual configuration properties like host, port, ssl encryption, auth db.
Example MongoDB URI:
mongodb://xxx-xxx-shard-00-00-xxxxx.mongodb.net:27017,xxx-xxx-shard-00-01-xxxxx.mongodb.net:27017,xxx-xxx-shard-00-02-xxxxx.mongodb.net:27017/?ssl=true&authSource=xxx&replicaSet=xxx-xxx-shard-0
If you would change FeatureProvider
bean method to accept list of FeatureClassProvider
beans then you could use multiple enums since GenericEnumBasedFeatureProvider
constructor allows to pass an array of the enums.
I think this could be implemented by changing bean method to something like this:
@Bean
public FeatureProvider featureProvider(final List<FeatureClassProvider> featureClassProviders) {
@SuppressWarnings("unchecked")
Class<? extends Enum<?>>[] featureClasses = featureClassProviders.stream()
.map(FeatureClassProvider::getFeatureClass).toArray(Class[]::new);
return new GenericEnumBasedFeatureProvider(featureClasses);
}
UrlHelper class builds URLs (for instance for AJAX calls or internal resources like js files) by extracting as base uri the scheme, port and server name from the http request (e.g. JobDefinitionsController).
This leads to the framework building wrong urls when being used by an unsecured service sitting behind e.g. a secured proxy, which terminates TLS. In that case the framework uses the http://xxxxxxx delivered by the proxy to build the links rendered on the UI instead of using https://xxxxxxx.
Ideally the scheme and/or domain of the base uri should be configurable.
@scheduled(initialDelay = 0, fixedRate = SCHEDULE_RATE_IN_MILLISECONDS)
private void prefetchFeatureStates() {
protected void prefetchFeatureStates() {
if (cache.size() == 0) {
LOG.debug("Initialize state for features");
initializeFeatureStates();
} else {
LOG.debug("Refreshing state for features");
cache.replaceAll((feature, cacheEntry) -> new CacheEntry(featureStateConverter.retrieveFeatureStateFromS3(feature)));
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.