Upload files to "/"

This commit is contained in:
2025-04-09 09:32:27 +00:00
parent 79a40b412f
commit 7156575685
4 changed files with 892 additions and 24 deletions

21
security.java Normal file
View File

@@ -0,0 +1,21 @@
package com.example.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
@Configuration
@EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
.antMatchers("/websocket-endpoint/**").permitAll()
.anyRequest().authenticated()
.and()
.csrf().disable();
}
}