Andrunevchyn

Recent Posts


Recent Comments


Archives


Categories


Meta


issue

@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 [...]

Andriy AndrunevchynAndriy Andrunevchyn

Logback rollover issue

If your rollover config doesn’t work due to unknown reason – read this answer. I didn’t find  why logback cannot rename log , no process locked log file. The easiest way to fix issue just  remove mentioned parameter File  Now my default log file has ugly name like myappname-2018-05-02.0.log instead myappname.log but I [...]

Andriy AndrunevchynAndriy Andrunevchyn

Eclipse 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 list of nulls instead [...]

Andriy AndrunevchynAndriy Andrunevchyn

Spring Boot та JPA – table name issue

  Вирішив поколупатись із Spring Boot і Spring Data Jpa і знайшов цікаву штуку. По дефолту у спрінга стоїть якийсь супероптимальний неймінг який використовує SNAKE_CASE і цей неймінг такий “ядучий” що навіть, якщо ви вказуєте явно camelCase назву для стовпчиків у таблиці на зразок то спрінг це ігнорує. Щоб побороти таке паскудство [...]

Andriy AndrunevchynAndriy Andrunevchyn