Skip to content

Instantly share code, notes, and snippets.

@betray32
Last active May 27, 2019 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save betray32/0d274793cff54926d566d8bb0d05fcfa to your computer and use it in GitHub Desktop.
Save betray32/0d274793cff54926d566d8bb0d05fcfa to your computer and use it in GitHub Desktop.
Ejecucion automática SpringBoot
package cl.testing;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Repository;
/**
* HibernateTestingDao
*
* @author ccontrerasc
*
*/
@Repository
public class HibernateTestingDao implements CommandLineRunner {
/**
* LOG
*/
private static final Log log = LogFactory.getLog(HibernateTestingDao.class);
/**
* Ejecucion automatica
*/
@Override
public void run(String... args) throws Exception {
log.info("Run Automatico desde [CommandLineRunner]");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment