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