Skip to content

Commit

Permalink
Delete database operation
Browse files Browse the repository at this point in the history
  • Loading branch information
13RTK committed Nov 22, 2023
1 parent 9b7e176 commit a6fc9af
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 88 deletions.
15 changes: 1 addition & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,12 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</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-web</artifactId>
</dependency>

<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
package com.example.javaapp.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.javaapp.service.UserService;

@RestController
@RequestMapping("/user")
public class UserController {
@Resource
private UserService userService;

@GetMapping
public String getUser() {
return userService.getUserList().toString();
return "Users";
}
}
19 changes: 0 additions & 19 deletions src/main/java/com/example/javaapp/entity/User.java

This file was deleted.

11 changes: 0 additions & 11 deletions src/main/java/com/example/javaapp/repository/UserRepository.java

This file was deleted.

9 changes: 0 additions & 9 deletions src/main/java/com/example/javaapp/service/UserService.java

This file was deleted.

This file was deleted.

5 changes: 1 addition & 4 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
spring.datasource.url=jdbc:mysql://localhost:3306/db_teamcity
spring.datasource.username=root
spring.datasource.password=123456
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

0 comments on commit a6fc9af

Please sign in to comment.