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.