diff --git a/spring-integration-smb/README.md b/spring-integration-smb/README.md index 77115b3..5925882 100644 --- a/spring-integration-smb/README.md +++ b/spring-integration-smb/README.md @@ -92,8 +92,8 @@ NOTE: Setting of the SMB protocol min/max versions must be done in your implemen ````java @Bean -public SmbSessionFactory smbSessionFactory(new myCIFSContext()) { - SmbSessionFactory smbSession = new SmbSessionFactory(); +public SmbSessionFactory smbSessionFactory() { + SmbSessionFactory smbSession = new SmbSessionFactory(new MyCIFSContext()); smbSession.setHost("myHost"); smbSession.setPort(445); smbSession.setDomain("myDomain");