mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-11-17 17:55:12 +00:00
[BUGFIX] Servlet init fixed
This commit is contained in:
parent
712c8128ef
commit
0318f485b7
@ -30,7 +30,6 @@ import java.util.regex.Matcher;
|
|||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import javax.servlet.RequestDispatcher;
|
import javax.servlet.RequestDispatcher;
|
||||||
import javax.servlet.ServletConfig;
|
|
||||||
import javax.servlet.ServletException;
|
import javax.servlet.ServletException;
|
||||||
import javax.servlet.http.HttpServlet;
|
import javax.servlet.http.HttpServlet;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
@ -124,8 +123,8 @@ public class PlantUmlServlet extends HttpServlet {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void init(ServletConfig config) throws ServletException {
|
public void init() throws ServletException {
|
||||||
config.getServletContext().setAttribute("cfg", Configuration.get());
|
getServletConfig().getServletContext().setAttribute("cfg", Configuration.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
private Transcoder getTranscoder() {
|
private Transcoder getTranscoder() {
|
||||||
|
Loading…
Reference in New Issue
Block a user