mirror of
https://github.com/brmlab/wekan-mailer.git
synced 2025-06-08 09:54:10 +02:00
Refactor the app packages naming
This commit is contained in:
parent
4d9eba586d
commit
d3063cef1d
2 changed files with 29 additions and 22 deletions
|
@ -1,22 +0,0 @@
|
||||||
package cz.brmlab.wekan.mailer;
|
|
||||||
|
|
||||||
import org.springframework.boot.SpringApplication;
|
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
@SpringBootApplication
|
|
||||||
@RestController
|
|
||||||
public class Application {
|
|
||||||
|
|
||||||
@RequestMapping("/")
|
|
||||||
public String home() {
|
|
||||||
return "Hello Docker World";
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
|
||||||
SpringApplication.run(Application.class, args);
|
|
||||||
System.out.println("Hello Docker World");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
29
src/main/java/cz/brmlab/wm/Application.java
Normal file
29
src/main/java/cz/brmlab/wm/Application.java
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
package cz.brmlab.wm;
|
||||||
|
|
||||||
|
import cz.brmlab.wm.utils.Exceptions.BrmException;
|
||||||
|
import cz.brmlab.wm.wekan.WekanConfiguration;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.boot.CommandLineRunner;
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
|
@SpringBootApplication
|
||||||
|
public class Application implements CommandLineRunner {
|
||||||
|
|
||||||
|
private static final Logger LOG = LoggerFactory.getLogger(Application.class);
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
SpringApplication.run(Application.class, args);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void run(String... args) {
|
||||||
|
try {
|
||||||
|
WekanConfiguration wekanConfiguration = new WekanConfiguration();
|
||||||
|
} catch (BrmException ex) {
|
||||||
|
System.exit(ex.getExitCode().getCode());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue