Changeset 46fd0c7 for src/main/java/edu/gjoko/schedlr/config/MvcConfig.java
- Timestamp:
- 03/13/23 00:58:07 (20 months ago)
- Branches:
- master
- Children:
- 9050790
- Parents:
- 2b0a4db
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/edu/gjoko/schedlr/config/MvcConfig.java
r2b0a4db r46fd0c7 2 2 3 3 import org.springframework.context.annotation.Configuration; 4 import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; 4 5 import org.springframework.web.servlet.config.annotation.ViewControllerRegistry; 5 6 import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; … … 14 15 registry.addViewController("/register_business").setViewName("register_business"); 15 16 registry.addViewController("/homepage").setViewName("homepage"); 17 registry.addViewController("/admin").setViewName("admin"); 16 18 } 17 19 18 20 @Override 21 public void addResourceHandlers(ResourceHandlerRegistry registry) { 22 registry.addResourceHandler("/resources/**") 23 .addResourceLocations("/resources/"); 24 } 19 25 }
Note:
See TracChangeset
for help on using the changeset viewer.