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 cannot [...]
Andriy Andrunevchyn
If you try compiling your project with maven and got java.lang.StackOverflowError check if you don’t use some extremely long builder like me Something like You could use flag -Xss which extends thread stack or just use variable for splitting builder like
Andriy Andrunevchyn
If you got such error on jdbc request and you have no idea whats wrong on request just check your parameters. In my case I didn’t notice I passed enum value instead name of that value. Seems SpringJdbc doesn’t know how to convert enum to String ((. The same issue appears if you try pass value of Instant class instead [...]
Andriy Andrunevchyn
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 Andrunevchyn
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. Pay attention! For Java 9 it will be version 9 not 1.9 source
Andriy Andrunevchyn
There are few simple steps Create root folder for project Open command line there Execute You will see long list of available archetypes and question at the end Choose appropriate number and proceed with instructions Pay attention it could be other value with the time. It was item #250, six years ago. Now for creating child [...]
Andriy Andrunevchyn
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 list of nulls instead [...]
Andriy Andrunevchyn
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: 7 -> 0 -> 8 and ListNode class [...]
Andriy Andrunevchyn
Spent some time to figure out why i cannot add properties on app context. Config was pretty trivial so 2 hours lost and I figured out there is no issue with this part of config I just didn’t notice one line on top Definitely you cannot mix two approaches. The worst thing is you will not see any exception or warning just binding will not [...]
Andriy Andrunevchyn
I reinstalled my OS so that mongo either. When I deploy project, following error appeared in log I spend few hours adding user in robomongo and directly from shell and restarting mongo and OS until figured out it could be issue with version of Spring Data MongoDB And yes it was that Here mentioned the same [...]
Andriy Andrunevchyn
Recent Comments