Compare commits

..

2 Commits

@ -10,15 +10,11 @@ import entgra.mailsender.exception.MailProcessingException;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import javax.sql.DataSource; import javax.sql.DataSource;
import java.io.*; import java.io.File;
import java.sql.Connection; import java.io.FileOutputStream;
import java.sql.DriverManager; import java.io.IOException;
import java.sql.PreparedStatement; import java.io.InputStream;
import java.sql.SQLException; import java.sql.*;
import java.sql.Timestamp;
import java.sql.ResultSet;
import java.sql.Blob;
import java.sql.Date;
import java.time.LocalDate; import java.time.LocalDate;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -35,10 +31,6 @@ public class MailDAOImpl implements MailDAO {
this.dataSource = dataSource; this.dataSource = dataSource;
} }
// private Connection getConnection() throws SQLException {
// return DriverManager.getConnection("jdbc:mysql://localhost:3306/email_sending", "root", "StrongPassword123!");
// }
@Override @Override
public int addMail(MailModel mailModel) throws SQLException { public int addMail(MailModel mailModel) throws SQLException {
try { try {

Loading…
Cancel
Save