mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:25:50 +00:00
Slf4j update
This commit is contained in:
parent
57e17d32b2
commit
bcda93f280
3 changed files with 7 additions and 8 deletions
2
pom.xml
2
pom.xml
|
@ -9,7 +9,7 @@
|
|||
<version>1.0.0-SNAPSHOT</version>
|
||||
<properties>
|
||||
<spring.version>3.0.0.RELEASE</spring.version>
|
||||
<slf4j.version>1.5.6</slf4j.version>
|
||||
<slf4j.version>1.5.10</slf4j.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
package org.springframework.samples.petclinic.aspects;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.aspectj.lang.JoinPoint;
|
||||
import org.aspectj.lang.annotation.Aspect;
|
||||
import org.aspectj.lang.annotation.Before;
|
||||
import org.aspectj.lang.annotation.Pointcut;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* Aspect to illustrate Spring-driven load-time weaving.
|
||||
|
@ -16,7 +16,7 @@ import org.aspectj.lang.annotation.Pointcut;
|
|||
@Aspect
|
||||
public abstract class AbstractTraceAspect {
|
||||
|
||||
private static final Log logger = LogFactory.getLog(AbstractTraceAspect.class);
|
||||
private static final Logger logger = LoggerFactory.getLogger(AbstractTraceAspect.class);
|
||||
|
||||
@Pointcut
|
||||
public abstract void traced();
|
||||
|
|
|
@ -8,9 +8,8 @@ import java.util.List;
|
|||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.dao.EmptyResultDataAccessException;
|
||||
|
@ -57,7 +56,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
@ManagedResource("petclinic:type=Clinic")
|
||||
public class SimpleJdbcClinic implements Clinic, SimpleJdbcClinicMBean {
|
||||
|
||||
private final Log logger = LogFactory.getLog(getClass());
|
||||
private final Logger logger = LoggerFactory.getLogger(getClass());
|
||||
|
||||
private SimpleJdbcTemplate simpleJdbcTemplate;
|
||||
|
||||
|
|
Loading…
Reference in a new issue