Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

martin codey

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

Recent posts by martin codey

//Controller class



//Service class


//entity

//database
5 days ago
Okay thank you for your answer. Cause now in the beginning I feel unsecure about what type of architectural way or style of coding I should use when i see peoples  different ways to code
5 days ago
There is some different styles people write codes and something that caught my attention was that some people did not use service class and only the controller class when writing the code. And I was wondering why do some people use service class and some people don't. And as a somewhat beginner should i learn one way style of coding or adapt and try to learn different styles?
6 days ago
Thank you Himai. It is changed.
1 month ago
I get to the spring default login form and i can only login with the generated password. Do I have to create a login html file too or can the default password be replaced without creating a login form.

I go from http://localhost:8080/login to http://localhost:8080/login?error when I type in the user name emma and password emma.
I want to go to http://localhost:8080/index

1 month ago
Alright I understand and It is fixed. This is the code:



Shouldn't I be authorized to login when typing emma for password and user? It does not work
1 month ago
Thank you for the explanation and  I made the change you told me to and did not get any visible error but when I started the project I got this error trace:
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project webapp: Compilation failure
[ERROR] /Users//Downloads/webapp/src/main/java/config/WebConfigur.java:[24,9] cannot find symbol
[ERROR]   symbol:   class var
[ERROR]   location: class config.WebConfigur
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
2 months ago
When adding encryption:


Multiple markers at this line
- Syntax error on token ".", delete this token
- Syntax error, insert ")" to complete Expression
- The method passwordEncoder(BCryptPasswordEncoder) is undefined for the type
WebConfigur


Uploaded my code to github  if it makes it easier to see the problem.

github
2 months ago
I go from http://localhost:8080/login to http://localhost:8080/login?error when I type in the user name emma and password emma.
I want to go to http://localhost:8080/index
2 months ago
I have tried the password and users but cannot login


//HelloController




2 months ago

Campbell Ritchie wrote:

Junilu Lacar wrote:. . . The intent was clearly to make a constructor . . .

All right then. I agree about the intent. But the compiler won't see that; it will see a method with missing return type.



I understand that it might  be a illformed constructor and I quite honest don't completely understand everything I do. But if you look at my other git repository it worked completely fine. Github second repository
3 months ago
Got error The blank final field customerRepository may not have been   initialized


Full code:


Uploaded it on github to make it easier for you to see the problem:
Github
3 months ago

Himai Minh wrote:One more fix for your UpdateUser:


The reason for the changes:
Binding Result always return an error in the original code because your customer in the update form does not have city of residence, ssn, country of residence , gender. It always returns binding result error.
It is a validation error.
In this case, we don't really need to validate.
And in this new method, we should pass the a customer model attribute to the Thymleaf form. The customer has updated/same email, name, surname. Then, save the updated information.




Thank you so much. It really worked.
3 months ago
I get this error:
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Thu May 21 18:43:48 CEST 2020
There was an unexpected error (type=Internal Server Error, status=500).
Error during execution of processor 'org.thymeleaf.spring5.processor.SpringInputGeneralFieldTagProcessor' (template: "add-customer" - line 39, col 52)

I uploaded the project to github so it would be easier for you to find the problem .
It works fine until I get to the http://localhost:8080/new and then it crashes.
github
4 months ago
Do you mean I should do something like this


And how do i know what version should I use?
4 months ago