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
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
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
Today we’ve got such exception quick investigation on Spring sources led us to issue with json serialization. We use jackson for converting from object to json behind the scene For Spring 3.x we configured But Spring 4.x requires jackson v2 Thx to Xavier Padró and his blog for hint Also you can read more about json serialization in [...]
Andriy Andrunevchyn
Вирішив поколупатись із Spring Boot і Spring Data Jpa і знайшов цікаву штуку. По дефолту у спрінга стоїть якийсь супероптимальний неймінг який використовує SNAKE_CASE і цей неймінг такий “ядучий” що навіть, якщо ви вказуєте явно camelCase назву для стовпчиків у таблиці на зразок то спрінг це ігнорує. Щоб побороти таке паскудство [...]
Andriy Andrunevchyn
Recent Comments