The release process, including last minute changes to fix bugs and
CVEs, happens in a private repo "commercial". The normal OSS
repository is "origin". The "commercial/main-internal" branch has the
same source code as "origin/main", but different CI set up. Therefore
github actions, in the .github directory, are definitely different,
and more than likely there are additional Maven settings in
.mvn. There might be differences between the pom.xml contents in
"main-internal" vs "main", but ideally we want those to go away to
| [INFO] --- native:1.1.1:build (default-cli) @ spring-petclinic --- | |
| [DEBUG] Dependency collection stats {ConflictMarker.analyzeTime=26126, ConflictMarker.markTime=26484, ConflictMarker.nodeCount=43, ConflictIdSorter.graphTime=14127, ConflictIdSorter.topsortTime=18185, ConflictIdSorter.conflictIdCount=29, ConflictIdSorter.conflictIdCycleCount=0, ConflictResolver.totalTime=188465, ConflictResolver.conflictItemCount=41, DfDependencyCollector.collectTime=1630963, DfDependencyCollector.transformTime=288736} | |
| [DEBUG] org.graalvm.buildtools:native-maven-plugin:jar:1.1.1 | |
| [DEBUG] org.graalvm.buildtools:utils:jar:1.1.1:runtime | |
| [DEBUG] com.github.openjson:openjson:jar:1.0.13:runtime | |
| [DEBUG] org.graalvm.buildtools:graalvm-reachability-metadata:jar:1.1.1:runtime | |
| [DEBUG] org.cyclonedx:cyclonedx-maven-plugin:jar:2.9.1:runtime | |
| [DEBUG] org.cyclonedx:cyclonedx-core-java:jar:9.0.5:runtime | |
| [DEBUG] commons-io:commons-io:jar:2.16.1:runtime | |
| [DEBUG] org.apache.commons:commons-collections4:jar:4.4:ru |
| class | method | sample | beans | classes | heap | memory | median | mean | range |
|---|---|---|---|---|---|---|---|---|---|
| com.example.bench.MicroBenchmark | main | demo | 100.000 | 4671.000 | 7.401 | 47.829 | 0.747 | 0.758 | 0.011 |
Spring Cloud Function has had support for Microsoft Azure Functions since version 1.0, but in the latest 2.0 releases (still in milestone phase) we decided to change the programming model a bit. This article describes what the changes mean for users, and provides a bit of background behind the shift. We in the Spring team had a lot of fun working on this and collaborating with the folks at Microsoft to get
- Use
@ConfigurationPropertiesand always get state from the bean. - The
Environmentcan change at runtime and Spring Cloud does this for you usingRefreshEvent. - Changes are propagated to beans in Spring Cloud in 2 ways (
@ConfigurationPropertiesand@RefreshScope). - If you care about the state of
@ConfigurationPropertiesbeing consistent on concurrent access, put it or the consumer@Beanin@RefreshScope.
| <?xml version="1.0" encoding="UTF-8"?> | |
| <settings> | |
| <servers> | |
| <server> | |
| <id>gpg.passphrase</id> | |
| <passphrase>{{passphrase}}</passphrase> | |
| </server> | |
| </servers> | |
| </settings> |
When a Spring Boot app starts up with default (INFO) logging, there are some noticeable gaps (pauses). It's worth focusing on the gaps when looking for efficiency savings because of the amount of time they take, and because no-one bothered to log anything, so the chances are the app is doing something repetitive. We can tweak the logging levels to try and fill in the gaps and find out what is going on in there.
Basic empty web app with actuators has three such gaps:
0 1410ms
|------|---------------------------|-----|------|---------|--------|--------|
| 578 | |144(5)| | 133(6) |
There are some new features in Spring Boot 1.3 to do with OAuth2 clients and servers and Spring Security OAuth2. Some of those features were ported from Spring Cloud Security and hence were in the Angel release train of Spring Cloud, but are not in the Brixton release train. This article helps you navigate the changes and update any existing apps to use the new features confidently.
If you are not using Spring Cloud you should be able to just change the version number of your Spring Boot dependency. Since some of the OAuth2 features migrated from Spring Cloud Security to Spring Boot in 1.3, it is likely that things are slightly more complicated than that. A [separate article](https://spring.io/blog/2015/11/25
| java.lang.IllegalArgumentException: null | |
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) | |
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) | |
| at java.lang.reflect.Constructor.newInstance(Constructor.java:408) | |
| at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147) | |
| at org.springframework.data.convert.ReflectionEntityInstantiator.createInstance(ReflectionEntityInstantiator.java:76) | |
| at org.springframework.data.convert.ClassGeneratingEntityInstantiator.createInstance(ClassGeneratingEntityInstantiator.java:83) | |
| at org.springframework.data.mongodb.core.convert.MappingMongoConverter.read(MappingMongoConverter.java:251) | |
| at org.springframework.data.mongodb.core.convert.MappingMongoConverter.read(MappingMongoConverter.java:231) |