hippo4j icon indicating copy to clipboard operation
hippo4j copied to clipboard

[Bug] Start failed on a none web application

Open WHHunter opened this issue 1 year ago • 4 comments

Which Project did you use? Hippo4j config or Hippo4j server?

Hippo4j config

Which version did you use?

1.5.0

Expected behavior

Use hippo4j on none web application.

Actual behavior

Application failed to start.

Cause analysis (if possible)

'cn.hippo4j.config.springboot.starter.config.DynamicThreadPoolAutoConfiguration#notifyConfigBuilder' required a bean of type 'cn.hippo4j.adapter.web.WebThreadPoolService'. But this application is not a web application and doesn't start an embedded web server.

Problem recurrence steps

Set application type to NONE and run

Sample code to reproduce the problem (for example, the GitHub Link)

public static void main(String[] args) {
        var application = new SpringApplication(ThreadPoolApp.class);
        application.setWebApplicationType(WebApplicationType.NONE);
        var context = application.run(args);
 }

WHHunter avatar May 26 '23 09:05 WHHunter

@WHHunter That's a problem, and we'll fix it in the next release.

magestacks avatar May 26 '23 10:05 magestacks

please assign to me

Mryanhehe avatar Jun 04 '23 05:06 Mryanhehe

@WHHunter Welcome

magestacks avatar Jun 04 '23 05:06 magestacks

@WHHunter Is there any progress?

magestacks avatar Sep 26 '23 02:09 magestacks