mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-09-29 23:39:04 +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 javax.servlet.RequestDispatcher;
|
||||
import javax.servlet.ServletConfig;
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.http.HttpServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
@ -124,8 +123,8 @@ public class PlantUmlServlet extends HttpServlet {
|
||||
return;
|
||||
}
|
||||
|
||||
public void init(ServletConfig config) throws ServletException {
|
||||
config.getServletContext().setAttribute("cfg", Configuration.get());
|
||||
public void init() throws ServletException {
|
||||
getServletConfig().getServletContext().setAttribute("cfg", Configuration.get());
|
||||
}
|
||||
|
||||
private Transcoder getTranscoder() {
|
||||
|
Loading…
Reference in New Issue
Block a user