Check Article Code Matches GitHub

This commit is contained in:
amit.pandey 2020-06-21 19:22:08 +05:30
parent 118786c62a
commit 3a8212a54d
2 changed files with 3 additions and 2 deletions

View File

@ -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();
}

View File

@ -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";
}