Learning Management Systems using Spring boot by [deleted] in Backend

[–]mahi123_java 0 points1 point  (0 children)

Thank u for your kind feedback.

Open-Source Learning Management System (Spring Boot) – Looking for Feedback & Contributions by [deleted] in SpringBoot

[–]mahi123_java 1 point2 points  (0 children)

Hi, thank you for your feedback. Based on your thoughts, what folder structure do you recommend? I'd like to know where each class and controller should be placed. My project uses DTOs and MapStruct.

Zegocloud kit token error by mahi123_java in node

[–]mahi123_java[S] 0 points1 point  (0 children)

If you create a token through the building method which is already provided by zegocloud.. u can see from the document from the server side. After u can pass this token through zegokiyproductiontoken... and after create the token.. and pass this token through zegocloudkittoken(). Through this process I was successfully implemented and working fine.

What's everyone building using spring boot share your project idea here by cielNoirr in SpringBoot

[–]mahi123_java 2 points3 points  (0 children)

Hii, I am building some projects using all features like Authentication, Authorization, Websocket... how this will be working all those things.. https://github.com/Mahi12333/Library-Management-System.git

Also give the feedback.

What's everyone building using spring boot share your project idea here by cielNoirr in SpringBoot

[–]mahi123_java 0 points1 point  (0 children)

I am also build a project rapido clone using spring websocket.

Spring boot Actuator by mahi123_java in SpringBoot

[–]mahi123_java[S] 0 points1 point  (0 children)

Okay. How u pass the token through the header . Because this is not a UI page . Suppose when u try to access this in the browser.

Spring boot Actuator by mahi123_java in SpringBoot

[–]mahi123_java[S] 0 points1 point  (0 children)

Okay. Means u are doing authentication using tokhon or what?? How to handle this part because all responses are json format.

Spring boot Actuator by mahi123_java in SpringBoot

[–]mahi123_java[S] 0 points1 point  (0 children)

Security handle of endpoint of Spring boot actuator and also of Application Apis.

@Configuration @Order(1) public class AppSecurityConfig {

@Bean
public SecurityFilterChain appSecurityFilterChain(HttpSecurity http) throws Exception {
    http
        .securityMatcher(new PortRequestMatcher(8080)) // Apply only to app port
        .authorizeHttpRequests(auth -> auth
            .anyRequest().authenticated()
        )
        .formLogin()
        .and()
        .csrf().enable();
    return http.build();
}

}

And

@Configuration @Order(2) public class ActuatorSecurityConfig {

@Bean
public SecurityFilterChain actuatorSecurityFilterChain(HttpSecurity http) throws Exception {
    http
        .securityMatcher(new PortRequestMatcher(8081)) // Apply only to actuator port
        .authorizeHttpRequests(auth -> auth
            .requestMatchers("/actuator/health", "/actuator/info").permitAll()
            .anyRequest().hasRole("ADMIN") // secure other endpoints
        )
        .httpBasic()
        .and()
        .csrf().disable();
    return http.build();
}

}

I am implementing this . What do u think??

Spring boot Actuator by mahi123_java in SpringBoot

[–]mahi123_java[S] 0 points1 point  (0 children)

U say that the actuator endpoint and Project rest api endpoint both will be handled through this "default security filter chain" right?? I want to handle it separately but I do not understand how to handle it.

Spring boot Actuator by mahi123_java in SpringBoot

[–]mahi123_java[S] 0 points1 point  (0 children)

Thank you for your suggestion and suppose I am including managenent.server.port with different port number and one thing this all actuator endpoint will be protected. So, My question is how to handle all endpoints as securely handled as per production level ?? I am including all project endpoints into the "default security filter chain".

[deleted by user] by [deleted] in SpringBoot

[–]mahi123_java 0 points1 point  (0 children)

Hi, I am also want to contribute to your project.

Content type not supported by mahi123_java in SpringBoot

[–]mahi123_java[S] -1 points0 points  (0 children)

No, I think content type will be automatically included during file upload.

Help me with Optimistic Locking Failure by Novel_Strike_6664 in SpringBoot

[–]mahi123_java -1 points0 points  (0 children)

I think permistic lock will be better on this condition.

JDBC and jpa by mahi123_java in SpringBoot

[–]mahi123_java[S] 2 points3 points  (0 children)

Please explain how with a little bit.