Skip to content

Instantly share code, notes, and snippets.

@Bean
public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
http.authorizeHttpRequests(auth ->
auth.anyRequest().authenticated()
)
.formLogin(Customizer.withDefaults());
return http.build();
}
package br.ufscar.dc.dsw;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class AcessaBD {