feat: first commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package local.epul4a.fotosharing;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
||||
|
||||
@SpringBootApplication
|
||||
public class FotoSharingApplication extends SpringBootServletInitializer {
|
||||
|
||||
@Override
|
||||
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
|
||||
return application.sources(FotoSharingApplication.class);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(FotoSharingApplication.class, args);
|
||||
}
|
||||
}
|
||||
17
src/main/resources/application.properties
Normal file
17
src/main/resources/application.properties
Normal file
@@ -0,0 +1,17 @@
|
||||
spring.application.name=FotoSharing
|
||||
|
||||
# ===============================
|
||||
# DATABASE
|
||||
# ===============================
|
||||
spring.datasource.url=jdbc:mariadb://192.168.124.171:3306/fotoshareDB
|
||||
spring.datasource.username=ufoto
|
||||
spring.datasource.password=4AinfoRep-25
|
||||
# ===============================
|
||||
# JPA / HIBERNATE
|
||||
# ===============================
|
||||
spring.jpa.hibernate.ddl-auto=update
|
||||
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDBDialect
|
||||
spring.jpa.show-sql=true
|
||||
spring.thymeleaf.prefix=classpath:/templates/
|
||||
spring.thymeleaf.suffix=.html
|
||||
spring.thymeleaf.mode=HTML
|
||||
9
src/main/resources/templates/index.html
Normal file
9
src/main/resources/templates/index.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>FotoSharing Title!</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>FotoSharing Title!</h1>
|
||||
</body>
|
||||
</html>
|
||||
17
src/main/webapp/WEB-INF/web.xml
Normal file
17
src/main/webapp/WEB-INF/web.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app xmlns="https://jakarta.ee/xml/ns/jakartaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee
|
||||
https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd"
|
||||
version="6.0"
|
||||
metadata-complete="false">
|
||||
|
||||
<display-name>FotoSharing</display-name>
|
||||
|
||||
<!-- Désactiver l'enregistrement automatique du filtre d'erreur -->
|
||||
<absolute-ordering>
|
||||
<name>spring_web</name>
|
||||
</absolute-ordering>
|
||||
|
||||
</web-app>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
package local.epul4a.fotosharing;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
@SpringBootTest
|
||||
class FotoSharingApplicationTests {
|
||||
|
||||
@Test
|
||||
void contextLoads() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user