Skip to content

Commit e56ab1d

Browse files
Denis RosaDenis Rosa
authored andcommitted
fixes
1 parent 6b2f7a2 commit e56ab1d

File tree

9 files changed

+10
-51
lines changed

9 files changed

+10
-51
lines changed

pom.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@
3838
<groupId>org.springframework.boot</groupId>
3939
<artifactId>spring-boot-starter-web</artifactId>
4040
</dependency>
41-
<dependency>
42-
<groupId>org.springframework.boot</groupId>
43-
<artifactId>spring-boot-starter-thymeleaf</artifactId>
44-
</dependency>
4541
<dependency>
4642
<groupId>org.springframework.boot</groupId>
4743
<artifactId>spring-boot-starter-test</artifactId>
@@ -97,14 +93,6 @@
9793
</dependencies>
9894

9995
<build>
100-
<resources>
101-
<resource>
102-
<directory>src/main/resources</directory>
103-
<includes>
104-
<include>*.properties</include>
105-
</includes>
106-
</resource>
107-
</resources>
10896
<plugins>
10997
<plugin>
11098
<groupId>org.springframework.boot</groupId>

src/main/java/org/couchbase/quickstart/Application.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
55
import org.springframework.boot.autoconfigure.SpringBootApplication;
6-
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
76

87
@SpringBootApplication(exclude = SecurityAutoConfiguration.class, proxyBeanMethods = false)
98
public class Application {

src/main/java/org/couchbase/quickstart/controllers/IndexController.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
import org.springframework.web.servlet.ModelAndView;
66

77

8-
@Controller
9-
8+
//@Controller
109
public class IndexController {
1110

12-
@RequestMapping("/")
13-
public ModelAndView index() {
14-
return new ModelAndView("redirect:/swagger-ui/");
15-
}
11+
// @RequestMapping("/")
12+
// public ModelAndView index() {
13+
// return new ModelAndView("index.html");
14+
// }
1615
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
spring.couchbase.bootstrap-hosts=localhost
22
spring.couchbase.bucket.name=user_profile
33
spring.couchbase.bucket.user=Administrator
4-
spring.couchbase.bucket.password=password
4+
spring.couchbase.bucket.password=password
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<html>
22
<head>
3-
<title>Getting Started: Serving Web Content</title>
3+
<title>Couchbase & Java Getting Started</title>
44
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
55
</head>
6-
<body>
7-
<p>Get your greeting</p>
6+
<body onload="window.location = '/swagger-ui/'">
7+
<a href="/swagger-ui/">Click here to see the API</a>
88
</body>
99
</html>

src/main/resources/static/resources/index.html

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/main/resources/templates/index.html

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/main/resources/view/index.html

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
spring.couchbase.bootstrap-hosts=localhost
22
spring.couchbase.bucket.name=user_profile
33
spring.couchbase.bucket.user=Administrator
4-
spring.couchbase.bucket.password=password
4+
spring.couchbase.bucket.password=password

0 commit comments

Comments
 (0)