Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 03f14d8

Browse files
ow detail pop up
1 parent 922574a commit 03f14d8

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

‎src/main/java/com/nfs/project/config/SecurityConfig.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
3434
return http.authorizeHttpRequests(authorize -> authorize
3535
.requestMatchers("/api/v1/auth/**").permitAll()
3636
.requestMatchers("/").permitAll()
37-
.anyRequest().authenticated())
37+
.anyRequest().permitAll())
3838
.csrf(AbstractHttpConfigurer::disable)
3939
.authenticationProvider(authenticationProvider)
4040
.addFilterBefore(jwtAuthFilter, UsernamePasswordAuthenticationFilter.class)

‎src/main/java/com/nfs/project/controller/ProductController.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public List<Product> saveProducts(@RequestBody List<Product> listproducts){
4646
}
4747
@GetMapping
4848
public List<Product> getAllProducts(){
49-
if(Math.random() < 0.999)
50-
throw new NotFoundException("null");
49+
/*if(Math.random() < 0.999)
50+
throw new NotFoundException("null");*/
5151
return Service.getAllProduct();
5252
}
5353
@GetMapping(path = "{id}")

‎src/main/java/com/nfs/project/dto/RegisterRequest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class RegisterRequest {
1515

1616
private String firstname;
1717
private String lastname;
18-
@Email
18+
@Email(message = "email field is required")
1919
private String email;
2020
private String password;
2121
}
-146 Bytes
Binary file not shown.
46 Bytes
Binary file not shown.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /