File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
spring-security-oauth/src/main/java/org/baeldung/config Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1717import org .springframework .context .annotation .PropertySource ;
1818import org .springframework .context .support .PropertySourcesPlaceholderConfigurer ;
1919import org .springframework .core .env .Environment ;
20+ import org .springframework .core .io .ClassPathResource ;
21+ import org .springframework .core .io .Resource ;
2022import org .springframework .http .client .ClientHttpRequestInterceptor ;
2123import org .springframework .scheduling .annotation .EnableAsync ;
2224import org .springframework .scheduling .annotation .EnableScheduling ;
@@ -85,9 +87,9 @@ public ScheduledTasks scheduledTasks(OAuth2ProtectedResourceDetails reddit) {
8587
8688 @ Bean
8789 public RedditClassifier redditClassifier () throws IOException {
88- // final Resource file = new ClassPathResource("data.csv");
90+ final Resource file = new ClassPathResource ("data.csv" );
8991 final RedditClassifier redditClassifier = new RedditClassifier ();
90- // redditClassifier.trainClassifier(file.getFile().getAbsolutePath());
92+ redditClassifier .trainClassifier (file .getFile ().getAbsolutePath ());
9193 return redditClassifier ;
9294 }
9395
You can’t perform that action at this time.
0 commit comments