Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Tim Nachreiner

Ranch Hand
+ Follow
since Apr 28, 2011
Cows and Likes
Cows
Total received
1
In last 30 days
0
Total given
0
Likes
Total received
16
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tim Nachreiner

Here is how I did it.  I think you are missing @ModelAttribute

2 months ago
Years ago I saw a Thymeleaf demo that threw the White Label error because an html tag wasn't properly closed.  Thymeleaf is really picky about that.  I see you don't have a closing Form tag.  Try adding one; and also check to make sure every element has a closing tag.
2 months ago
All your datasources will be created when the app first loads, via component scan.  You just won't be able to 'open' the secondary datasource until you get the credentials from the first datasource.
3 months ago
I was taught that the bindingResult parameter should always follow the parameter annotated with @Valid.  Might want to swap the order of your last two parameters.
3 months ago
Probably not a good idea to make your Bean ID with spaces in it: jsp view resolver.   Try making it one word: view-resolver or viewresolver.
10 months ago
This link may be of interest to you, especially item 4:    https://www.baeldung.com/spring-postconstruct-predestroy
1 year ago
Can you run your unit tests without this "extra" .xml file?
Sometimes a different .xml file is created for unit testing.
1 year ago
I'm assuming you have an architecture like this: TodoController ==> TodoService ==> TodoDao.
If so, TodoController should handle all CRUD operations on your Todo entity.  Why would you have another controller that performs CRUD operations on the Todo entity?

If you DID have another controller that performed CRUD operations on the Todo entity, that controller could still use the TodoService and TodoDao layers; eliminating the need for duplicate code.

I get the feeling you are looking for a 'Spring-based' solution to your problem in order to learn Spring, but based on your requirements, a database trigger on the Todo table may be more appropriate.
1 year ago
try  
1 year ago
What tool are you using to develop the Angular piece?
1 year ago
I viewed your source code and was impressed.
Is this a tutorial you are following?
If so, would you share the link?
1 year ago
Here's a better solution:

2 years ago