Merge pull request #9541 from amit2103/JAVA-1952
Check Article Code Matches GitHub
This commit is contained in:
commit
2c007f42bd
|
@ -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