nueva v

parent 27df2343
...@@ -25,9 +25,11 @@ dependencies { ...@@ -25,9 +25,11 @@ dependencies {
implementation 'com.lowagie:itext:2.1.7' implementation 'com.lowagie:itext:2.1.7'
implementation 'net.sf.jasperreports:jasperreports:6.9.0' implementation 'net.sf.jasperreports:jasperreports:6.9.0'
implementation 'org.springframework.boot:spring-boot-starter-mail' implementation 'org.springframework.boot:spring-boot-starter-mail'
implementation 'org.springframework.boot:spring-boot-devtools'
implementation 'javax.persistence:javax.persistence-api' implementation 'javax.persistence:javax.persistence-api'
compileOnly 'org.projectlombok:lombok' compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.oracle.database.jdbc:ojdbc8' runtimeOnly 'com.oracle.database.jdbc:ojdbc8'
annotationProcessor 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation 'org.springframework.boot:spring-boot-starter-test'
} }
......
...@@ -12,15 +12,5 @@ import javax.transaction.Transactional; ...@@ -12,15 +12,5 @@ import javax.transaction.Transactional;
@Service @Service
@Transactional @Transactional
public class ServiceEmail { public class ServiceEmail {
@Autowired
JavaMailSender javaMailSender;
@Autowired
ServiceFile serviceFile;
@Value("${spring.mail.username}")
private String email;
public void sendListEmail(String emailTo){
}
} }
...@@ -37,7 +37,6 @@ public class ServiceExample implements IServiceExample{ ...@@ -37,7 +37,6 @@ public class ServiceExample implements IServiceExample{
//Seteamos los nuevos datos del registro //Seteamos los nuevos datos del registro
example.setNumero(modelExample.getNumero()); example.setNumero(modelExample.getNumero());
example.setName(modelExample.getName()); example.setName(modelExample.getName());
example.setState(modelExample.getState());
ModelExample exampleActualizado = daoExample.save(example); ModelExample exampleActualizado = daoExample.save(example);
return exampleActualizado; return exampleActualizado;
......
# Habilitar reinicializacin automtica
spring.devtools.restart.enabled=true
# Habilitar recarga en caliente de plantillas (por ejemplo, para Thymeleaf)
spring.thymeleaf.cache=false
# Habilitar recarga en caliente de propiedades
spring.devtools.livereload.enabled=true
# POOL CONFIG # POOL CONFIG
spring.datasource.hikari.connection-timeout = 20000 spring.datasource.hikari.connection-timeout = 20000
#maximum number of milliseconds that a client will wait for a connection #maximum number of milliseconds that a client will wait for a connection
...@@ -12,9 +24,9 @@ spring.datasource.hikari.max-lifetime= 1000 ...@@ -12,9 +24,9 @@ spring.datasource.hikari.max-lifetime= 1000
spring.datasource.hikari.auto-commit =true spring.datasource.hikari.auto-commit =true
#spring.datasource.url=jdbc:oracle:thin:@//localhost/XE #spring.datasource.url=jdbc:oracle:thin:@//localhost/XE
spring.datasource.url=jdbc:oracle:thin:@//localhost:1521/bddp spring.datasource.url=jdbc:oracle:thin:@//localhost:1521/orcl
spring.jpa.hibernate.ddl-auto=update spring.jpa.hibernate.ddl-auto=update
spring.datasource.username=joel spring.datasource.username=JOEL
spring.datasource.password=1234 spring.datasource.password=1234
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver #spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment