-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
98 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM openjdk:17 | ||
|
||
COPY target/alist-0.0.1.jar alist-0.0.1.jar | ||
|
||
ENTRYPOINT ["java", "-jar", "/alist-0.0.1.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
back/src/main/java/net/daw/alist/repositories/CommentRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package net.daw.alist.repositories; | ||
|
||
import net.daw.alist.models.Comment; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface CommentRepository extends JpaRepository<Comment, Long> { | ||
} |
7 changes: 7 additions & 0 deletions
7
back/src/main/java/net/daw/alist/repositories/PostItemRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package net.daw.alist.repositories; | ||
|
||
import net.daw.alist.models.PostItem; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface PostItemRepository extends JpaRepository<PostItem, Long> { | ||
} |
7 changes: 7 additions & 0 deletions
7
back/src/main/java/net/daw/alist/repositories/PostRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package net.daw.alist.repositories; | ||
|
||
import net.daw.alist.models.Post; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface PostRepository extends JpaRepository<Post, Long> { | ||
} |
7 changes: 7 additions & 0 deletions
7
back/src/main/java/net/daw/alist/repositories/TopicRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package net.daw.alist.repositories; | ||
|
||
import net.daw.alist.models.Topic; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface TopicRepository extends JpaRepository<Topic, Long> { | ||
} |
7 changes: 7 additions & 0 deletions
7
back/src/main/java/net/daw/alist/repositories/UserRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package net.daw.alist.repositories; | ||
|
||
import net.daw.alist.models.User; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface UserRepository extends JpaRepository<User, Long> { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
# mysql properties | ||
spring.datasource.driver-class-name=com.mysql.jdbc.Driver | ||
spring.datasource.url=jdbc:mysql://localhost:3306/alist | ||
spring.datasource.username=alist | ||
spring.datasource.password=y0JlZhO3z8 | ||
spring.jpa.hibernate.ddl-auto=create-drop | ||
spring.jpa.show-sql=false | ||
spring.jpa.database=mysql | ||
spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect | ||
|
||
spring.jackson.serialization.INDENT_OUTPUT=true | ||
spring.jpa.properties.hibernate.format_sql=true | ||
logging.level.org.hibernate.SQL=DEBUG | ||
logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE | ||
|
||
spring.mustache.suffix=.html | ||
logging.level.org.springframework.web=DEBUG | ||
server.port=8443 |