Merge pull request #195 from thingsboard/feature/TB-65
TB-65: Fix spring boot configuration.
This commit is contained in:
commit
5f9b9cb85d
@ -17,16 +17,14 @@
|
||||
package org.thingsboard.server;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.SpringBootConfiguration;
|
||||
import org.springframework.context.ConfigurableApplicationContext;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.thingsboard.server.install.ThingsboardInstallService;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
@EnableAutoConfiguration
|
||||
@SpringBootApplication
|
||||
@SpringBootConfiguration
|
||||
@ComponentScan({"org.thingsboard.server.install",
|
||||
"org.thingsboard.server.service.component",
|
||||
"org.thingsboard.server.service.install",
|
||||
|
||||
@ -20,10 +20,12 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Profile;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.thingsboard.server.dao.util.SqlDao;
|
||||
|
||||
@Service
|
||||
@Profile("install")
|
||||
@Slf4j
|
||||
@SqlDao
|
||||
public class SqlDatabaseSchemaService implements DatabaseSchemaService {
|
||||
|
||||
@Value("${install.data_dir}")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user