spring-boot

Log values of query parameters in Spring Data R2DBC?

廉价感情. 提交于 2021-02-20 16:15:25
问题 In Spring Data R2DBC I can log SQL queries by using logging.level.org.springframework.data.r2dbc=DEBUG in the application.properties . However, this doesn't log the actual values that are bound as query parameters. How can I log the actual values of query parameters in Spring Data R2DBC? 回答1: This worked for me : logging: level: io.r2dbc.postgresql.QUERY: DEBUG # for queries io.r2dbc.postgresql.PARAM: DEBUG # for parameters I found it here 回答2: If you happen to use MySQL, you can get a low

Listen on changes through spring-webflux and spring reactive data

主宰稳场 提交于 2021-02-20 13:32:20
问题 TL;DR; Is it possible to listen on changes through spring-webflux & spring reactive data ? End of TL;DR; Hi, I did few tutorials regarding new spring webflux module and spring mongo reactive. (correct me If I'm wrong) There are two basic types in reactive spring, Mono (for 0 or single object) and Flux (0 - n) objects. If I return a Flux json object ( a list of all comments) then my client is going to receive them in one response (not in chunks or something). I did it here, I also can change

How to enable Hystrix DEBUG level logging

别说谁变了你拦得住时间么 提交于 2021-02-20 09:19:41
问题 I have implemented Netflix OSS Hystrix in one of my Spring boot application. And configured some properties for the HystrixCommand. But how can I verify that those properties are really used by HystrixCommand. For example, hystrix.threadpool.default.maxQueueSize=12 hystrix.threadpool.default.keepAliveTimeMinute=2 hystrix.command.default.execution.isolation.strategy=SEMAPHORE How can I see that these properties are applied to HystrixCommand? Is there any way I can enable debug level logging

How to enable Hystrix DEBUG level logging

微笑、不失礼 提交于 2021-02-20 09:19:06
问题 I have implemented Netflix OSS Hystrix in one of my Spring boot application. And configured some properties for the HystrixCommand. But how can I verify that those properties are really used by HystrixCommand. For example, hystrix.threadpool.default.maxQueueSize=12 hystrix.threadpool.default.keepAliveTimeMinute=2 hystrix.command.default.execution.isolation.strategy=SEMAPHORE How can I see that these properties are applied to HystrixCommand? Is there any way I can enable debug level logging

WEB-INF not included in WebApp using SpringBoot, Spring-MVC and Maven

廉价感情. 提交于 2021-02-20 09:09:51
问题 I have a webapp using Spring-MVC built with Maven. When I generate the JAR file the app start just fine. The controller is execute but when I reach this part: @RequestMapping(value = "/test-block", method = RequestMethod.GET) public ModelAndView block(Model model) { return new ModelAndView("templates/test-block"); } I get this error: There was an unexpected error (type=Not Found, status=404). /WEB-INF/templates/test-block.jsp Note that debugging or running in the IDE works fine. My folder:

WEB-INF not included in WebApp using SpringBoot, Spring-MVC and Maven

一笑奈何 提交于 2021-02-20 09:09:34
问题 I have a webapp using Spring-MVC built with Maven. When I generate the JAR file the app start just fine. The controller is execute but when I reach this part: @RequestMapping(value = "/test-block", method = RequestMethod.GET) public ModelAndView block(Model model) { return new ModelAndView("templates/test-block"); } I get this error: There was an unexpected error (type=Not Found, status=404). /WEB-INF/templates/test-block.jsp Note that debugging or running in the IDE works fine. My folder:

WEB-INF not included in WebApp using SpringBoot, Spring-MVC and Maven

别来无恙 提交于 2021-02-20 09:08:45
问题 I have a webapp using Spring-MVC built with Maven. When I generate the JAR file the app start just fine. The controller is execute but when I reach this part: @RequestMapping(value = "/test-block", method = RequestMethod.GET) public ModelAndView block(Model model) { return new ModelAndView("templates/test-block"); } I get this error: There was an unexpected error (type=Not Found, status=404). /WEB-INF/templates/test-block.jsp Note that debugging or running in the IDE works fine. My folder:

WEB-INF not included in WebApp using SpringBoot, Spring-MVC and Maven

牧云@^-^@ 提交于 2021-02-20 09:06:56
问题 I have a webapp using Spring-MVC built with Maven. When I generate the JAR file the app start just fine. The controller is execute but when I reach this part: @RequestMapping(value = "/test-block", method = RequestMethod.GET) public ModelAndView block(Model model) { return new ModelAndView("templates/test-block"); } I get this error: There was an unexpected error (type=Not Found, status=404). /WEB-INF/templates/test-block.jsp Note that debugging or running in the IDE works fine. My folder:

WEB-INF not included in WebApp using SpringBoot, Spring-MVC and Maven

谁说我不能喝 提交于 2021-02-20 09:05:26
问题 I have a webapp using Spring-MVC built with Maven. When I generate the JAR file the app start just fine. The controller is execute but when I reach this part: @RequestMapping(value = "/test-block", method = RequestMethod.GET) public ModelAndView block(Model model) { return new ModelAndView("templates/test-block"); } I get this error: There was an unexpected error (type=Not Found, status=404). /WEB-INF/templates/test-block.jsp Note that debugging or running in the IDE works fine. My folder:

Using bootBuildImage with a private Docker repository on Windows 10

怎甘沉沦 提交于 2021-02-20 04:46:07
问题 I am trying to use bootBuildImage on Windows 10 (Docker is running in WSL2 mode) and when I set up in build.gradle group = "repo.trajano.net" bootBuildImage { builder = "${project.group}/${project.name}" } I found a couple of things that look incorrect d:\dh\template-ms>gradlew bootBuildImage > Task :bootBuildImage FAILED Building image 'docker.io/library/template-ms:latest' > Pulling builder image 'repo.trajano.net/template-ms:latest' ..................................................