maxThreads, acceptCount, maxConnections
. I'd like to return 503
with retry-after
header when for example maxThreads
and acceptCount
are at maximum. Is there any option how to retrieve this statistics? Or better is there some support for returning error when maximum values of this parameters are reached?
Hi
just started new spring boot service with cloud config
and noticed that spring.profiles
now deprecated, and it suggests to use: spring.config.activate.on-profile: dev
However setting: spring.profiles.active: dev
has no effect, now boot spring says:
INFO 9830 --- [main] s.StudentOptionsSolverServiceApplication : No active profile set, falling back to default profiles: default
Where can I see any info regarding profiles changes in latest spring boot?
And how to set profile now?
ok, seems I found. docs related to changes in Spring Boot 2.4.0
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-Config-Data-Migration-Guide
it says:
You can still use the 'spring.profiles.active' property to activate specific profiles, however, you won’t be able to use this property in combination with 'spring.config.activate.on-profile'
but what should I use to activate profile then with spring.config.activate.on-profile
???
2.2.11.RELEASE
, I get a schema validation error for missing tables (nothing is creating them in the h2 in-memory database), but if I upgrade to 2.3.6.RELEASE
or 2.4.0
the schema validation error goes away (no other changes to my code or application.properties
)
spring.jpa.hibernate.ddl-auto=validate
from my application.properties
file, I can see that it does indeed do the hbm2ddl stuff and creates the tables just fine.
spring.jpa.hibernate.ddl-auto=update
, it also creates the table(s). It's just if I use the value validate
that it appears to just get turned off completely. It appears to be treating it as if I set that property to none
.
Hello everyone,
Are there any classes or interfaces other than {Model , ModelMap , ModelAndView } that deal with Model or/and view in the context of spring MVC ?
1) Model : Model defines a holder for model attributes,
2) ModelMap : ModelMap is an extension of Model with the ability to store attributes
3) ModelAndView : ModelAndView is a holder for a model and a view
Thanks in advance
maxThreads, acceptCount, maxConnections
are limits for them?
@philwebb Hi, sorry didn't see you wrote to me here
Yes we can continue the conversation here. Am I right to say that this upgraded profiles system is no longer support active profile?
otherwise, you would give an answer in the ticket or here...
So the question is how those profiles are working now? and what should I change to make it work?
:wave: Hi folks, Is there a way in SpringBoot to capture the request payload for controller functions before they are mapped to objects?
For example if I have the following endpoint
@RequestMapping(value = "user", method = RequestMethod.POST)
ResponseEntity<Customer> testEndpoint(@RequestBody @Valid Customer payload) {
System.out.println(payload);
return ResponseEntity.ok(payload);
}
And what I’d like to do is write a function which logs the RequestBody as a string as it was received (not within the controller when it’s been transformed in an object). How can I do so? Is there a way to intercept the execution before the controller function body get’s transformed arguments?
metadataManager
require it.