I was reviewing code, and I see all the LOG class
is to login?
@Component
class ApplicationEventListener {
@SuppressWarnings("unused")
private static Logger LOG = LoggerFactory.getLogger(ApplicationEventListener.class);
and inv...
I am using this project in the pom of my application:
<dependency>
<groupId>com.girotan.notification</groupId>
<artifactId>notification-service-rest-client</artifactId>
<version>0.0.1-SNAPSHOT<...
Good I have a problem I try to add a dependency, but this marks me the following
[ERROR]
/root/evolplus/backendEvol/evolplus/icova/icova-service/src/main/java/com/applying/icova/service/IdeaServiceImpl.java:[10,42]
package org.apach...
According to what each method has its objective:
post to insert records,
get to get / show records,
put to modify records,
delete to delete records
I made the following code, which adds a new book to the bd then I...
I have the following code:
import java.util.List;
import org.springframework.data.repository.Repository;
import net.javabeat.spring.data.domain.Book;
public interface BookNamedQueryRepositoryExample extends Repository<Book, Long> {...
From a web application with spring I want to send emails, and I want to do it asynchronously.
For this I want to use the annotation @Async of spring.
This is the configuration I have: servlet-context.xml
<!-- DispatcherServlet Context...
I have something like this:
The class Other needs an instance of MyBean so create the attribute and use it when I create the bean Other
@Configuration
public SomeClass {
@Resource
private MyBean b;
@A...
I have the following link
<div class="col-md-8">
<a href="borrarUsuario/${session.userData.id}">Borrar Usuario</a>
</div>
This is the controller method that clears
@RequestMapping(value="/borrarUsuario/{id}",me...
I have the following dilemma to generate a list of all the credentials that belong to a specific physical host.
Class FisicHost
@Entity
@Transactional
public class FisicHost {
@Id
@GeneratedValue(strategy = GenerationType.IDENTIT...
Mail Class that sends the mail
package com.example.demo.controllers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSender;
i...