Initial backend

This commit is contained in:
Gnarwhal 2021-01-27 03:27:04 -05:00
parent f10ca87343
commit a06a558d7b
Signed by: Gnarwhal
GPG key ID: 0989A73D8C421174
19 changed files with 303 additions and 0 deletions

View file

@ -0,0 +1,19 @@
package achievements;
import achievements.services.DbConnectionService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Application {
public static void main(String[] args) {
var context = SpringApplication.run(Application.class, args);
// Verify the database connection succeeded
var db = context.getBean(DbConnectionService.class);
if (db.getConnection() == null) {
SpringApplication.exit(context, () -> 0);
}
}
}