Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
marwin1991 authored Jan 6, 2025
1 parent 5d71f08 commit 413fd89
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,14 @@ You can achieve this by creating simple class:

```java
@Slf4j
@Component
@Configuration
public class PrintHofundConnectionsTabel {
@Autowired
public PrintHofundConnectionsTabel(HofundConnectionsTable connectionsTable) {
log.info(connectionsTable.print());
@Bean
public CommandLineRunner demo(HofundConnectionsTable connectionsTable) {
return (args) -> {
log.info(connectionsTable.print());
};
}
}
```
Expand Down

0 comments on commit 413fd89

Please sign in to comment.