Changeset 044bd76 for src/main/java/edu/gjoko
- Timestamp:
- 01/30/23 23:34:33 (22 months ago)
- Branches:
- master
- Children:
- 9280859
- Parents:
- 763289e
- Location:
- src/main/java/edu/gjoko/schedlr
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/edu/gjoko/schedlr/config/AppSecurityConfig.java
r763289e r044bd76 51 51 .antMatchers("/homepage").permitAll() 52 52 .antMatchers("/css/**").permitAll() 53 .antMatchers("/js/**").permitAll() 53 54 .antMatchers("/anonymous*").anonymous() 54 55 .anyRequest() -
src/main/java/edu/gjoko/schedlr/config/MvcConfig.java
r763289e r044bd76 15 15 registry.addViewController("/homepage").setViewName("homepage"); 16 16 } 17 18 17 19 } -
src/main/java/edu/gjoko/schedlr/controllers/HomePageController.java
r763289e r044bd76 5 5 import org.springframework.web.bind.annotation.GetMapping; 6 6 import org.springframework.web.bind.annotation.PostMapping; 7 import org.springframework.web.bind.annotation.RestController;8 7 9 @ RestController(value = "/homepage")8 @Controller 10 9 public class HomePageController { 11 10 12 @GetMapping 11 @GetMapping(name = "/homepage") 13 12 public String getHomePageTemplate(Model model) { 14 13 return "homepage"; 15 14 } 16 15 17 @PostMapping 16 @PostMapping(name = "/homepage") 18 17 public String postHomePageTemplate(Model model) { 19 18 return "homepage";
Note:
See TracChangeset
for help on using the changeset viewer.