"Spring Boot REST Client Logging Made Easy

  Рет қаралды 5,225

Dan Vega

Dan Vega

Күн бұрын

Пікірлер: 15
@Nick-yd3rc
@Nick-yd3rc Ай бұрын
I appreciate your video as always. I’ve been doing Spring for many years. Having stepped away from it for a couple weeks now, I must say, it never stops to surprise me just how much error-prone hassle it imposes on you for something so simple, it doesn’t make me feel like one can be agile or simply productive with Spring 😅 and I tend to forget about that when I get back to the Spring ecosystem, debugging production code. You never stop learning with Spring.😅
@geni4551
@geni4551 Ай бұрын
What about a websocket example with Spring?
@Ligtez
@Ligtez Ай бұрын
It shouldn't be so complicated to do something so commonly needed!!! Fortunately, instead of RestClient I am using Apache Camel in my project. Logging (and almost everything) is incredibly much simpler.
@LordBrad2
@LordBrad2 Ай бұрын
Great stuff!
@zerocodercool
@zerocodercool Ай бұрын
Nice! Thanks for sharing, Dan!
@mohammedsaeed3639
@mohammedsaeed3639 Ай бұрын
Really helpful , thanks Dan
@joseangulo8168
@joseangulo8168 Ай бұрын
Thank you, do you know which use cases can be acomplished with this example, please 😅
@napty5841
@napty5841 Ай бұрын
Dan answering questions from Dan Nice
@kappaj01
@kappaj01 Ай бұрын
Seems like a pretty heavy approach just to get a log! Lots of buffers and reading stuff. Error prone. Great video!
@JimShingler
@JimShingler Ай бұрын
Very Nice!
@mrMarseleene
@mrMarseleene Ай бұрын
wtf, Dan, i literally was thinking about loggig, like i need change my print to log in my pet project and here we go
@SaifuddinMerchant
@SaifuddinMerchant Ай бұрын
I always wondered why the framework doesn't provide an implementation of the interceptor (logging interceptor) that one could just use out of the box?
@mavt1943
@mavt1943 Ай бұрын
For spring webflux(webclient)?
@FredrikRambris
@FredrikRambris Ай бұрын
I have done something very similar. Could you also do a bit on server request logging. From basic common log format to detailed body logging. Both with tomcat and jetty
@AhmedAli-qx4og
@AhmedAli-qx4og Ай бұрын
Hi Dan, how about configuring the RestClient requestFactory with the below .requestFactory(new BufferingClientHttpRequestFactory(new SimpleClientHttpRequestFactory())) full bean definition is below @Bean RestClient demoServiceRestClientConfigurer( RestClient.Builder restClientBuilder, AppProperties.ExternalSystem demoSystemProperties, RestClientInterceptor demoRestClientInterceptor) { return restClientBuilder .baseUrl(demoSystemProperties.getBaseUrl()) .requestFactory(new BufferingClientHttpRequestFactory(new SimpleClientHttpRequestFactory())) .requestInterceptor(demoRestClientInterceptor) .build(); }
Spring Security 6.4: RestClient Support for OAuth2
25:28
Dan Vega
Рет қаралды 6 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
5 Common Mistakes Spring Developers Make
18:06
Dan Vega
Рет қаралды 20 М.
Test Driven Development (TDD) in Spring
51:09
Dan Vega
Рет қаралды 29 М.
Spring Boot APIs Gateway in 20 Minutes
22:50
The IT Wizard
Рет қаралды 14 М.
An overview of the clients available in Spring Boot
26:44
Dan Vega
Рет қаралды 6 М.
Building the Ultimate Nike App in React Native & Redux
3:33:55
notJust․dev
Рет қаралды 238 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19