103104105106107108109
return internalResourceViewResolver; } @Bean public StringToEntityConverter bookConverter() { return new StringToEntityConverter(Book.class); }
108109110111112113114
return new StringToEntityConverter(Book.class); } @Bean public StringToEntityConverter categoryConverter() { return new StringToEntityConverter(Category.class); }
152153154155156157158
registry.addConverter(categoryConverter()); } @Bean public GenericConverter categoryConverter() { return new StringToEntityConverter(Category.class); }