Movie management and find valuable movies to watch
git clone --recursive [email protected]:zzh1991/Movie-Helper.git
# or
git clone [email protected]:zzh1991/Movie-Helper.git
git submodule init
git submodule updateconfigure your database name (an empty database), user, password in src/main/resources/application.yml
You could use PostgreSQL(default configuration) or MySQL. Also, you could use H2 database.
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/movie?allowPublicKeyRetrieval=true&useConfigs=maxPerformance&useSSL=false&serverTimezone=UTC&characterEncoding=utf8
password: mysql
username: root
initialization-mode: never
flyway:
enabled: true
baseline-on-migrate: true
validate-on-migrate: false
locations: classpath:db/migration/mysqlremove postgres dependency and add mysql dependency in pom.xml
<!-- remove -->
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
</dependency>
<!-- add -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>cd frontyarn: install dependency- prepare front static files
- dev mode
yarn start
- build mode
yarn run deploy
- dev mode
- start the web app in IDE
- open browser
build mode: go to http://localhost:8080dev mode: go to http://localhost:3000
cd front
git fetch origin master
git rebase origin/master
# or
git submodule update --remote frontmvn javadoc:javadocopen
target/site/apidocs/index.htmlby browser
Demo: Movie Helper
- sync recent / top movies
- latest sync time
- search by movie name
- database upgrade
- schedule task
- java doc
- lazy load
- use timestamp with time zone
- Spring Boot 2
- PostgresQL
- Guava
- Swagger2
- Flyway
- Prometheus
- GraphQL
- Mybatis
- Mybatis-plus
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>- setting -> compiler -> make project automatically
- ctrl + shift + a -> registry -> auto make enabled
- edit run/debug configuration
- add environment variables: spring.profiles.active=dev
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
</plugin>mvn versions:display-dependency-updatesmvn versions:use-next-releases
mvn versions:use-latest-releasesfirstly should migrate to 4.2.0 and then 5.x
Refer to mybatis/mybatis-3#1644
- copy
LocalDateTimeTypeHandler.javainto project - configure
LocalDateTimeTypeHandlerbean
👤 Zhihao Zhang
- Github: @zzh1991
Please ⭐️ this repository if this project helped you!





