java
@SpringBootTest
Sometimes I hate springboot for different kind of hidden things. You just copy sample with dozens different annotations and then it doesn’t work and you have no any idea what is wrong ’cause you don’t see any logs about that So shortly – if you try to configure test suite for SpringBoot pay attention you [...]
Andriy AndrunevchynMaven and StackOverflowError
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project paidle-rm: Fatal error compiling: java.lang.StackOverflowError -> [Help 1] If you try compiling your project with maven and got java.lang.StackOverflowError check if you don’t use some extremely long [...]
Andriy AndrunevchynAssertionError on jdbc request
If you got such error on jdbc request java.lang.AssertionError at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setObject(SQLServerPreparedStatement.java:1693) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setObjectNoType(SQLServerPreparedStatement.java:1530) at [...]
Andriy AndrunevchynSpring 5 + WebFlux without SpringBoot
I don’t like SpringBoot because of hidden dependencies and unknown springconfigs behind annotations. But there is one more problem with SpringBoot – as usual latest examples from Pivotal (and others as well) are written based on SpringBoot and sometimes it’s not possible easily to figure out how properly to set up plain [...]
Andriy AndrunevchynSetting the -source and -target of the Java Compiler on Maven
It’s not necessary to add compiler plugin to your project when you want to set -source/-target java version. Just add following properties, which are the default property names for the plugin parameters. <properties> <maven.compiler.source>1.8</maven.compiler.source> [...]
Andriy AndrunevchynMaven multi-module quickstart
There are few simple steps Create root folder for project Open command line there Execute mvn archetype:generate You will see long list of available archetypes and question at the end Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): 1057: Choose appropriate number and proceed with [...]
Andriy AndrunevchynEclipse debug mode and MongoDB
I found out interesting thing – when you debug your app with active connection to Mongo it could cause unexpected issue at least if use spring mongo data What I noticed If you remove all data from collection you will not be able insert any new record to that collection Sometimes getAll method could return […]
Andriy AndrunevchynLeetCode: 2. Add Two Numbers
My first task on LeetCode You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list. Input: (2 -> 4 -> 3) + (5 -> 6 -> 4) Output: […]
Andriy AndrunevchynIssue: multiply properties configs on Spring
Spent some time to figure out why i cannot add properties on app context. Config was pretty trivial <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="properties" ref="configproperties" /> </bean> <bean id="configproperties" [...]
Andriy Andrunevchyn
Recent Comments