Skip to content
Snippets Groups Projects
Commit 129557ae authored by Thomas's avatar Thomas
Browse files

Convert dataStore to FS

parent 34d98e30
Branches
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ services:
- MYSQL_USER=mozen_user
- MYSQL_PASSWORD=1234
volumes:
- /data/mozen_db_data:/config
- /data/mozen_data/db:/config
restart: unless-stopped
mozen_web:
......@@ -23,4 +23,6 @@ services:
container_name: mozen_web
ports:
- 8007:8181
volumes:
- /data/mozen_data/store:/home/data
restart: unless-stopped
......@@ -48,7 +48,7 @@
</dependency>
<dependency>
<groupId>com.github.paulcwarren</groupId>
<artifactId>spring-content-jpa-boot-starter</artifactId>
<artifactId>spring-content-fs-boot-starter</artifactId>
<version>1.0.0.M10</version>
</dependency>
......
......@@ -3,7 +3,7 @@ package mozen;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.content.jpa.config.EnableJpaStores;
import org.springframework.content.fs.config.EnableFilesystemStores;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.PropertySource;
......@@ -15,7 +15,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableJpaRepositories(basePackageClasses = MozenApplication.class)
@EntityScan(basePackages = "mozen.model")
@ComponentScan(basePackages = "mozen")
@EnableJpaStores
@EnableFilesystemStores
@EnableTransactionManagement
@PropertySource("classpath:application.properties")
public class MozenApplication {
......
......@@ -32,3 +32,5 @@ spring.servlet.multipart.max-file-size=10GB
spring.servlet.multipart.max-request-size=10GB
spring.jackson.serialization.fail-on-empty-beans=false
spring.content.fs.filesystem-root=data
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment