title: How to create a standalone desktop app with Flutter & Java Spring without creating a web server on localhost
body: <p>We want to launch a new open source project that will present as a Desktop app. We want to use <strong>Java Spring</strong> for business logic (backend) and <strong>Flutter</strong> to build the GUI (As we may create mobile and web applications).</p>
  <p>The idea is that user has the choice to use its Flutter desktop app as <em>standalone</em> (business logic processed locally with java spring) or to connect its desktop app to an external server java spring that we provide (exactly the same processing features, just computation are done on OUR server).</p>
  <p>Our initial idea is to just embed a Spring web server in the desktop app, that will launch and be used if user doesn't want to use our external server.</p>
  <p><strong>I feel this approach is overkilled. Why launching a web server locally just for 1 consumer (the desktop app itself)?</strong></p>
  <p>There should be a better approach... I made my researches but I found nothing, most solutions are to use front and back end solutions on same language (i.e, Flutter only application with business logic, or using Java Spring for backend and JavaFX for frontend) but we definitely want to avoid that and use both Flutter and Java Spring.</p>
  <p>Maybe I am not addressing the right question. Does anyone can help me to achieve this goal or to better formulate my issue?</p>
  <p>Many thanks !</p>