clear unuse

version_2
floxx2112 1 year ago
parent 3f4f3bd733
commit d12344a67b
  1. 4
      src/main/java/com/apside/assist/db/backend/service/implementation/GitServiceImpl.java
  2. 3
      src/main/java/com/apside/assist/db/backend/service/implementation/ResetDataServiceImpl.java
  3. 2
      src/main/resources/application.properties

@ -34,7 +34,7 @@ public class GitServiceImpl implements GitService {
private String uriGit; private String uriGit;
private static final String NAME_URI = "origin"; private static final String NAME_URI = "origin";
private static final String COMMIT_MESSAGE = "commited"; private static final String COMMIT_MESSAGE = "commited";
private static final String BRANCH_NAME = "main";
@Override @Override
public void pushToGit() throws IOException, GitAPIException, URISyntaxException { public void pushToGit() throws IOException, GitAPIException, URISyntaxException {
@ -63,7 +63,7 @@ public class GitServiceImpl implements GitService {
public void pullFromGit() throws IOException, GitAPIException { public void pullFromGit() throws IOException, GitAPIException {
log.debug("Starting pullFromGit method."); log.debug("Starting pullFromGit method.");
try (Git git = Git.open(new File(tempDirectoryPath))){ try (Git git = Git.open(new File(tempDirectoryPath))){
git.pull().setCredentialsProvider(createCredential()).setRemote("origin").setRemoteBranchName("main").call(); git.pull().setCredentialsProvider(createCredential()).setRemote(NAME_URI).setRemoteBranchName(BRANCH_NAME).call();
log.info("Pull from Git successful."); log.info("Pull from Git successful.");
} catch (IOException|GitAPIException exception){ } catch (IOException|GitAPIException exception){
log.error("Error push from git", exception); log.error("Error push from git", exception);

@ -51,9 +51,6 @@ public class ResetDataServiceImpl implements ResetDataService, InitializingBean
private static final String LENGTH_STRING = "length"; private static final String LENGTH_STRING = "length";
private static final String COLUMN_TEXT_STRING = "column_text"; private static final String COLUMN_TEXT_STRING = "column_text";
@Value("${spring.jpa.properties.hibernate.jdbc.batch_size}")
private int batchSize;
@Override @Override
public void afterPropertiesSet() throws Exception { public void afterPropertiesSet() throws Exception {
path = Paths.get(pathForData); path = Paths.get(pathForData);

@ -17,5 +17,3 @@ PATH_FOR_TAG_JSON = /AssistDB_AdditionalFiles/tags.json
logging.level.org.springframework.boot.web.embedded.tomcat=INFO logging.level.org.springframework.boot.web.embedded.tomcat=INFO
logging.level.org.springframework=error logging.level.org.springframework=error
spring.jpa.properties.hibernate.jdbc.batch_size=30
Loading…
Cancel
Save