Skip to content

Commit 2e5f06e

Browse files
authored
Add Main Handler
1 parent cdc2ec9 commit 2e5f06e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/main/java/com/example/Main.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,11 @@ public DataSource dataSource() throws SQLException {
8484
return new HikariDataSource(config);
8585
}
8686
}
87+
88+
@RequestMapping("/hello")
89+
String hello(Map<String, Object> model) {
90+
model.put("message", "Welcome to my app!");
91+
return "hello";
92+
}
8793

8894
}

0 commit comments

Comments
 (0)