JMinix und Spring Boot

341 views
Skip to first unread message

philipp...@gmail.com

unread,
Jul 6, 2016, 9:27:36 AM7/6/16
to jminix-users
After losing some time with JMinix and Spring Boot, here are my findings:

JMinix does not work with one of the Servlet Filters that Spring Boot defines by default (HiddenHttpMethodFilter). With the Filter present, parameters are not passed to the MBeans. So the following did the job for me (in one of the Java configuration classes):

@Bean
public ServletRegistrationBean jminixServlet() {
ServletRegistrationBean servletBean = new ServletRegistrationBean();
servletBean.addUrlMappings("/jminix/*");
servletBean.setServlet(new org.jminix.console.servlet.MiniConsoleServlet());
return servletBean;
}

// one needs to exclude this filter for jminix to work
@Bean
public FilterRegistrationBean excludeDefaultFilter(HiddenHttpMethodFilter filter) {
FilterRegistrationBean registration = new FilterRegistrationBean(filter);
registration.setEnabled(false);
return registration;
}


Raviteja Gubba

unread,
May 29, 2017, 5:06:09 AM5/29/17
to jminix-users
Thanks for sharing this Philip. I was facing the same issue and it helped me to fix it :).
Reply all
Reply to author
Forward
0 new messages