Compare commits

..

No commits in common. "master" and "day8" have entirely different histories.
master ... day8

9 changed files with 5 additions and 56 deletions

3
.gitignore vendored
View File

@ -5,9 +5,6 @@ build/
!**/src/main/**
!**/src/test/**
application-mysql.yml
application-postgres.yml
### STS ###
.apt_generated
.classpath

View File

@ -13,8 +13,6 @@ repositories {
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'io.springfox:springfox-swagger2:2.9.2'

View File

@ -8,6 +8,7 @@ import org.springframework.stereotype.Repository;
import java.util.Optional;
@SuppressWarnings("ALL")
@Repository
public interface UserRepository extends BaseRepository<UserEntity, Long> {
Optional<UserEntity> findFirstByEmail(String email);

View File

@ -1,20 +0,0 @@
package com.cubetiqs.demo.ui;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class HomeController {
@GetMapping(value = {"/index", "", "/", "/index.php"})
public String index(Model model) {
model.addAttribute("myname", "Sambo");
return "index";
}
@GetMapping(value = {"/admin/users"})
public String user(Model model) {
model.addAttribute("myname", "Sambo");
return "admin/users/index";
}
}

View File

@ -7,6 +7,6 @@ spring:
ddl-auto: update
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: root
username: cubetiq
password: Root$
url: jdbc:mysql://192.168.0.150:3306/demo

View File

@ -7,6 +7,6 @@ spring:
ddl-auto: update
datasource:
driver-class-name: org.postgresql.Driver
username: root
password: root
username: cubetiq
password: Root$
url: jdbc:postgresql://${POSTGRES_HOST:192.168.0.150}:5432/demo

View File

@ -1 +0,0 @@
console.log("hello")

View File

@ -1,13 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<h1>Users</h1>
</body>
</html>

View File

@ -1,13 +0,0 @@
<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Index</title>
</head>
<body>
<h1 th:text="${myname}"></h1>
</body>
</html>