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 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 […]
Andriy Andrunevchyn
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
Today we’ve got such exception org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation 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 <dependency> [...]
Andriy Andrunevchyn
Вирішив поколупатись із Spring Boot і Spring Data Jpa і знайшов цікаву штуку. По дефолту у спрінга стоїть якийсь супероптимальний неймінг spring.jpa.hibernate.naming_strategy: org.hibernate.cfg.ImprovedNamingStrategy який використовує SNAKE_CASE і цей неймінг такий “ядучий” що навіть, якщо ви вказуєте явно camelCase назву для [...]
Andriy Andrunevchyn
Recent Comments