Can someone suggests a good source for multifactor authentication( Google authenticator) for Spring Boot?

|
Prudhvi . 2022-06-30 18:55:24
Any one now how to sort list of hash maps based on hashMap keys
S K 2022-06-30 19:06:44
Using treemap would be better for sorted map based on keys
Modi_34 2022-06-30 19:37:11
springbootmicroservices-65699.jpg
Anyone plz verify it is correct or not
Modi_34 2022-06-30 19:37:59
Modi_34 2022-06-30 19:37:11
Anyone plz verify it is correct or not

I just copied properties and manually gave my database name

Modi_34 2022-06-30 19:40:32
springbootmicroservices-65701.jpg

Modi_34 2022-06-30 19:41:07
When I run this, according to. Lecture, table created automatically and in my case table was not created
v_lan1337 2022-06-30 19:55:00
Modi_34 2022-06-30 19:40:32

In your model package, have you mapped your employee bean to the table?

Dainul Abid 2022-06-30 19:58:04
Anyone have video angular?
Dainul Abid 2022-06-30 19:58:12
I will pay money
Modi_34 2022-06-30 20:11:32
v_lan1337 2022-06-30 19:55:00
In your model package, have you mapped your employee bean to the table?

springbootmicroservices-65708.jpg

Modi_34 2022-06-30 20:11:32
v_lan1337 2022-06-30 19:55:00
In your model package, have you mapped your employee bean to the table?

springbootmicroservices-65707.jpg

Modi_34 2022-06-30 20:11:32
v_lan1337 2022-06-30 19:55:00
In your model package, have you mapped your employee bean to the table?

springbootmicroservices-65706.jpg

Mr_Adwern 2022-06-30 20:13:29
Hi someone can help me with this question?

https://stackoverflow.com/questions/72805200/problem-with-populating-a-dropdown-list-manytoone-spring

Problem with populating a dropdown list ManyToOne – SpringStack Overflow
I have a problem populating a drop down list with a ManyToOne relationship.
I have two entities, Product referencing Category with Category ID …
But I can’t populate the category list with the Sp…
v_lan1337 2022-06-30 20:26:33
Mr_Adwern 2022-06-30 20:13:29
Hi someone can help me with this question?

https://stackoverflow.com/questions/72805200/problem-with-populating-a-dropdown-list-manytoone-spring

guess your endpoint is different. You’re adding cateogories to the model in one method, but the form action points to another.

Mr_Adwern 2022-06-30 20:28:02
And what is the solution?
Mr_Adwern 2022-06-30 20:29:32
The system iterate the list in the spring form but when I save a new Product it save also the Category… So i can’t add a product because the category have unique index and I got the exception of duplicate key
Mr_Adwern 2022-06-30 20:29:56
How can i solve the problem?
Mr_Adwern 2022-06-30 20:31:53
The tag form:select have the path=”category” and items=”${categories}” which is the list of the categories
ImVickkie 2022-06-30 20:33:21
Modi_34 2022-06-30 19:37:11
Anyone plz verify it is correct or not

You should have driver-class-name

ImVickkie 2022-06-30 20:33:49
ImVickkie 2022-06-30 20:33:21
You should have driver-class-name

Spring.datasource.driver-class-name

ImVickkie 2022-06-30 20:35:07
springbootmicroservices-65721.jpg

v_lan1337 2022-06-30 20:37:03
Mr_Adwern 2022-06-30 20:31:53
The tag form:select have the path=”category” and items=”${categories}” which is the list of the categories

yes. That’s what I was referring to.

You have
<form:select path=”category”>
<form:options items=”${categories}”></form:options>
</form:select>

under the form which point to method createProductForm.
<form:form action=”createProductForm”

But, the categories is added to the model, only in this method.
@GetMapping(“/createProd”)
public ModelAndView createProduct(@ModelAttribute(“newProduct”) Product p, Model model) {

List<Category> categories = (List<Category>) catRep.findAll();
model.addAttribute(“categories”, categories);

return new ModelAndView(“createProduct”, “newProduct”, new Product());
}

You have to add categories to the other method, or change the method to which the form:action points to.

Mr_Adwern 2022-06-30 20:41:05
v_lan1337 2022-06-30 20:37:03
yes. That’s what I was referring to.

You have
<form:select path=”category”>
<form:options items=”${categories}”></form:options>
</form:select>

under the form which point to method createProductForm.
<form:form action=”createProductForm”

But, the categories is added to the model, only in this method.
@GetMapping(“/createProd”)
public ModelAndView createProduct(@ModelAttribute(“newProduct”) Product p, Model model) {

List<Category> categories = (List<Category>) catRep.findAll();
model.addAttribute(“categories”, categories);

return new ModelAndView(“createProduct”, “newProduct”, new Product());
}

You have to add categories to the other method, or change the method to which the form:action points to.

And if I copy the category list in the CreateProductForm method? It will solve the problem of the duplicate key?

v_lan1337 2022-06-30 20:42:33
Mr_Adwern 2022-06-30 20:41:05
And if I copy the category list in the CreateProductForm method? It will solve the problem of the duplicate key?

ok. the problem you stated was not getting the categories dropdown. now, you have duplicate key issue?

Mr_Adwern 2022-06-30 20:49:09
v_lan1337 2022-06-30 20:42:33
ok. the problem you stated was not getting the categories dropdown. now, you have duplicate key issue?

springbootmicroservices-65728.jpg
This is my controller

SJ 2022-06-30 20:49:14
Hi all .. I have created a new workbench in STS . I need to open previous workbench.

What should I do ? Every time newly created workbench only opening..

tr7tr5 2022-06-30 20:50:30
SJ 2022-06-30 20:49:14
Hi all .. I have created a new workbench in STS . I need to open previous workbench.

What should I do ? Every time newly created workbench only opening..

u might have option as open recent workspace under File..

Saravana Pandiyan 2022-06-30 20:52:57
SJ 2022-06-30 20:49:14
Hi all .. I have created a new workbench in STS . I need to open previous workbench.

What should I do ? Every time newly created workbench only opening..

Under the file menu, you can see Switch Workspace option, select that and select your old Workspace

SJ 2022-06-30 21:00:49
Thanks both of u
Arda 2022-06-30 22:31:32
Can someone suggests a good source for multifactor authentication( Google authenticator) for Spring Boot?
|