Skip to content

Commit 6ab069f

Browse files
committed
Add hazelcast.yml file
1 parent 5899165 commit 6ab069f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/pj/hazelcastdemo/HazelcastDemoApplication.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ public class HazelcastDemoApplication
1010
{
1111
public static void main(String[] args)
1212
{
13-
test();
13+
connectToHazelcastClient();
1414
SpringApplication.run(HazelcastDemoApplication.class, args);
1515
}
1616

17-
private static void test()
17+
private static void connectToHazelcastClient()
1818
{
1919
ClientConfig clientConfig = new ClientConfig();
20-
//clientConfig.getNetworkConfig().addAddress("127.0.0.1");
20+
clientConfig.getNetworkConfig().addAddress("127.0.0.1");
2121
HazelcastClient.newHazelcastClient(clientConfig);
2222
}
2323
}

0 commit comments

Comments
 (0)