File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
runtime/spring/src/main/java/com/flit/runtime/spring Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 15
15
# The quiet flag is required otherwise the tooling will dump output to stdout which will break the
16
16
# plugin output and generation will fail.
17
17
# -----------------------------------------------------------------------------
18
- DIR=$( dirname " $0 " )
18
+ DIR=$( dirname $( readlink -f " $0 " ) )
19
19
20
20
JAR=$( ls -c ${DIR} /plugin-* -all.jar | head -1)
21
21
java ${FLIT_JAVA_OPTS} -jar $JAR $@
Original file line number Diff line number Diff line change 3
3
import com .flit .runtime .ErrorCode ;
4
4
import com .flit .runtime .FlitException ;
5
5
import com .google .protobuf .InvalidProtocolBufferException ;
6
- import java .util .HashMap ;
7
- import java .util .Map ;
8
- import javax .servlet .http .HttpServletRequest ;
9
6
import org .slf4j .Logger ;
10
7
import org .slf4j .LoggerFactory ;
11
8
import org .springframework .http .MediaType ;
15
12
import org .springframework .web .bind .annotation .ExceptionHandler ;
16
13
import org .springframework .web .servlet .mvc .method .annotation .ResponseEntityExceptionHandler ;
17
14
15
+ import javax .servlet .http .HttpServletRequest ;
16
+ import java .util .HashMap ;
17
+ import java .util .Map ;
18
+
18
19
@ ControllerAdvice
19
20
@ Component
20
21
public class FlitExceptionHandler extends ResponseEntityExceptionHandler {
21
22
22
- private static final Logger LOGGER = LoggerFactory .getLogger (FlitExceptionHandler .class );
23
+ private static final Logger LOGGER = LoggerFactory .getLogger (FlitExceptionHandler .class );
23
24
24
25
25
26
@ ExceptionHandler (Exception .class )
You can’t perform that action at this time.
0 commit comments