cleanup
This commit is contained in:
parent
afa7d4a71d
commit
0389a1bada
6
pom.xml
6
pom.xml
@ -72,12 +72,6 @@
|
|||||||
<version>3.14.0</version>
|
<version>3.14.0</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.google.code.gson</groupId>
|
|
||||||
<artifactId>gson</artifactId>
|
|
||||||
<version>2.10.1</version>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- Tests -->
|
<!-- Tests -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
package cc.fascinated.backend;
|
package cc.fascinated.backend;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
|
||||||
import com.google.gson.GsonBuilder;
|
|
||||||
import lombok.SneakyThrows;
|
import lombok.SneakyThrows;
|
||||||
import lombok.extern.log4j.Log4j2;
|
import lombok.extern.log4j.Log4j2;
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
@ -15,10 +13,6 @@ import java.util.Objects;
|
|||||||
@Log4j2(topic = "Main")
|
@Log4j2(topic = "Main")
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
public class Main {
|
public class Main {
|
||||||
public static final Gson GSON = new GsonBuilder()
|
|
||||||
.setDateFormat("MM-dd-yyyy HH:mm:ss")
|
|
||||||
.create();
|
|
||||||
|
|
||||||
@SneakyThrows
|
@SneakyThrows
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
File config = new File("application.yml");
|
File config = new File("application.yml");
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
package cc.fascinated.backend.exception.impl;
|
|
||||||
|
|
||||||
import org.springframework.http.HttpStatus;
|
|
||||||
import org.springframework.web.bind.annotation.ResponseStatus;
|
|
||||||
|
|
||||||
@ResponseStatus(HttpStatus.BAD_REQUEST)
|
|
||||||
public class BadRequestException extends RuntimeException {
|
|
||||||
|
|
||||||
public BadRequestException(String message) {
|
|
||||||
super(message);
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user