Skip to content

Instantly share code, notes, and snippets.

View MuriEdu's full-sized avatar

Murilo Ramos MuriEdu

  • São Carlos - Sp
View GitHub Profile
package br.ufscar.dc.dsw.mural.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.dao.DaoAuthenticationProvider;
import org.springframework.security.config.Customizer;
import org.springframework.security.config.annotation.authentication.configuration.AuthenticationConfiguration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
@MuriEdu
MuriEdu / AcessaDB.java
Created May 5, 2025 01:41
PC.04 - Murilo Ramos
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 {
@MuriEdu
MuriEdu / MainServlet.java
Created April 22, 2025 20:42
DSW - Exercício02
// MainServlet.java
package org.example;
import io.vavr.control.Option;
import jakarta.servlet.ServletException;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
@MuriEdu
MuriEdu / FasterStaticPageServlet
Created April 7, 2025 17:04
Segue minha resposta para o exercício PC02
package br.ufscar.dc.dsw;
import java.io.*;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;