Skip to content

Commit

Permalink
fix import order & remove excessive try-catch
Browse files Browse the repository at this point in the history
  • Loading branch information
Pil0tXia committed Jan 26, 2024
1 parent f6afe4b commit 512c2c5
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,19 @@

package org.apache.eventmesh.dashboard.console;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@SpringBootApplication
@ComponentScan({"org.apache.eventmesh.dashboard.service", "org.apache.eventmesh.dashboard.console"})
public class EventmeshConsoleApplication {

public static void main(String[] args) {
try {
SpringApplication.run(EventmeshConsoleApplication.class, args);
log.info("{} Successfully booted.", EventmeshConsoleApplication.class.getSimpleName());
} catch (Exception e) {
log.error(e.getMessage(), e);
}
SpringApplication.run(EventmeshConsoleApplication.class, args);
log.info("{} Successfully booted.", EventmeshConsoleApplication.class.getSimpleName());
}
}

0 comments on commit 512c2c5

Please sign in to comment.