Merge pull request #9541 from amit2103/JAVA-1952

Check Article Code Matches GitHub
This commit is contained in:
Josh Cummings 2020-06-22 08:22:22 -06:00 committed by GitHub
commit 2c007f42bd
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";
}