Skip to content

Commit

Permalink
fix: restore Application init (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDmz authored Jan 19, 2024
1 parent 60728d8 commit aaaa7b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>fr.insee.pearljam</groupId>
<artifactId>pearljam-back-office</artifactId>
<version>4.1.4</version>
<version>4.1.5</version>

<packaging>war</packaging>
<name>Pearl-Jam-Back-Office</name>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/fr/insee/pearljam/api/ApiApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.Arrays;
import java.util.stream.StreamSupport;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
Expand All @@ -19,16 +20,15 @@

import fr.insee.pearljam.api.repository.SurveyUnitRepository;
import fr.insee.pearljam.api.service.impl.DataSetInjectorServiceImpl;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

@SpringBootApplication(scanBasePackages = "fr.insee.pearljam.api")
@EnableJpaRepositories(basePackageClasses = SurveyUnitRepository.class)
@RequiredArgsConstructor
@Slf4j
public class ApiApplication extends SpringBootServletInitializer {

private final DataSetInjectorServiceImpl injector;
@Autowired
private DataSetInjectorServiceImpl injector;

@Value("${spring.profiles.active}")
private String profile;
Expand Down

0 comments on commit aaaa7b8

Please sign in to comment.