Skip to content

Commit

Permalink
main controller
Browse files Browse the repository at this point in the history
start of spring
  • Loading branch information
IvanPerez9 committed Feb 6, 2018
1 parent 0ed9056 commit c9233f1
Show file tree
Hide file tree
Showing 3 changed files with 511 additions and 13 deletions.
23 changes: 10 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,37 +23,26 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mustache</artifactId>
</dependency>
<!--
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>
-->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
<!-- dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency-->
<!--
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
-->
<!-- ====================================================================== -->
<!-- ================================ SPRING ============================== -->
<!-- ====================================================================== -->
Expand Down Expand Up @@ -82,6 +71,14 @@
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
</dependency>
<!-- ====================================================================== -->
<!-- ============================== H2 DATABASE =========================== -->
<!-- ====================================================================== -->
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
<!-- ====================================================================== -->
<!-- ============================ BUILD-PLUGINS =========================== -->
Expand Down
13 changes: 13 additions & 0 deletions src/main/java/FitURJC/controller/MainController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package FitURJC.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class MainController {

@RequestMapping(value = "/")
public String getIndex() {
return "index";
}
}
Loading

0 comments on commit c9233f1

Please sign in to comment.