This commit is contained in:
Anthony Stirling
2024-12-24 09:43:45 +00:00
parent bf9a00868d
commit 6119181276
5 changed files with 13 additions and 7 deletions

View File

@@ -41,7 +41,9 @@ public class SPdfApplication {
private String baseUrl; private String baseUrl;
public SPdfApplication( public SPdfApplication(
Environment env, ApplicationProperties applicationProperties, @Autowired(required = false) WebBrowser webBrowser) { Environment env,
ApplicationProperties applicationProperties,
@Autowired(required = false) WebBrowser webBrowser) {
this.env = env; this.env = env;
this.applicationProperties = applicationProperties; this.applicationProperties = applicationProperties;
this.webBrowser = webBrowser; this.webBrowser = webBrowser;

View File

@@ -16,7 +16,8 @@ class AppUpdateService {
private final ShowAdminInterface showAdmin; private final ShowAdminInterface showAdmin;
public AppUpdateService( public AppUpdateService(
ApplicationProperties applicationProperties, @Autowired(required = false) ShowAdminInterface showAdmin) { ApplicationProperties applicationProperties,
@Autowired(required = false) ShowAdminInterface showAdmin) {
this.applicationProperties = applicationProperties; this.applicationProperties = applicationProperties;
this.showAdmin = showAdmin; this.showAdmin = showAdmin;
} }

View File

@@ -35,7 +35,9 @@ public class ApiDocService {
Map<String, List<String>> outputToFileTypes = new HashMap<>(); Map<String, List<String>> outputToFileTypes = new HashMap<>();
JsonNode apiDocsJsonRootNode; JsonNode apiDocsJsonRootNode;
public ApiDocService(ServletContext servletContext, @Autowired(required = false) UserServiceInterface userService) { public ApiDocService(
ServletContext servletContext,
@Autowired(required = false) UserServiceInterface userService) {
this.servletContext = servletContext; this.servletContext = servletContext;
this.userService = userService; this.userService = userService;
} }

View File

@@ -37,12 +37,12 @@ public class GeneralWebController {
private static final String SIGNATURE_BASE_PATH = "customFiles/static/signatures/"; private static final String SIGNATURE_BASE_PATH = "customFiles/static/signatures/";
private static final String ALL_USERS_FOLDER = "ALL_USERS"; private static final String ALL_USERS_FOLDER = "ALL_USERS";
private final SignatureService signatureService; private final SignatureService signatureService;
private final @Autowired(required = false) UserServiceInterface userService; private final UserServiceInterface userService;
private final ResourceLoader resourceLoader; private final ResourceLoader resourceLoader;
public GeneralWebController( public GeneralWebController(
SignatureService signatureService, SignatureService signatureService,
UserServiceInterface userService, @Autowired(required = false) UserServiceInterface userService,
ResourceLoader resourceLoader) { ResourceLoader resourceLoader) {
this.signatureService = signatureService; this.signatureService = signatureService;
this.userService = userService; this.userService = userService;

View File

@@ -20,10 +20,11 @@ public class SignatureController {
private final SignatureService signatureService; private final SignatureService signatureService;
private final @Autowired(required = false) UserServiceInterface userService; private final UserServiceInterface userService;
public SignatureController( public SignatureController(
SignatureService signatureService, UserServiceInterface userService) { SignatureService signatureService,
@Autowired(required = false) UserServiceInterface userService) {
this.signatureService = signatureService; this.signatureService = signatureService;
this.userService = userService; this.userService = userService;
} }