Check Article Code Matches GitHub
This commit is contained in:
parent
118786c62a
commit
3a8212a54d
|
@ -12,6 +12,7 @@ import org.springframework.context.annotation.Configuration;
|
|||
import org.springframework.context.annotation.PropertySource;
|
||||
import org.springframework.core.env.Environment;
|
||||
import org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor;
|
||||
import org.springframework.data.domain.AuditorAware;
|
||||
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
|
||||
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
|
||||
import org.springframework.orm.hibernate4.HibernateTransactionManager;
|
||||
|
@ -60,7 +61,7 @@ public class PersistenceConfig {
|
|||
}
|
||||
|
||||
@Bean("auditorProvider")
|
||||
public AuditorAwareImpl auditorAwareImpl() {
|
||||
public AuditorAware<String> auditorProvider() {
|
||||
return new AuditorAwareImpl();
|
||||
}
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ public class FooMappingExamplesController {
|
|||
|
||||
@RequestMapping(value = "/foos", produces = { "application/json", "application/xml" })
|
||||
@ResponseBody
|
||||
public String getFoosAsJsonFromBrowser() {
|
||||
public String getFoosAsJsonFromREST() {
|
||||
return "Get some Foos with Header New";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue