简体   繁体   English

Codename 一个前端 Spring Boot back-end

[英]Codename One front-end with Spring Boot back-end

I have a test Codename One project that includes a Spring boot project as an included module.我有一个测试代号 One 项目,其中包含一个 Spring 引导项目作为包含模块。 我的测试项目布局

Everything runs fine with the Spring Boot server and cn1 simulator.使用 Spring 启动服务器和 cn1 模拟器,一切运行良好。 I tried using the cn1 build server to generate an.apk to test on my smartphone.我尝试使用 cn1 构建服务器生成 .apk 以在我的智能手机上进行测试。 The app opens ok, but there is a.network error in the connection to the target uri.应用程序打开正常,但在与目标 uri 的连接中出现网络错误。

It's not a module.它不是一个模块。 It's a separate project.这是一个单独的项目。 The Spring Boot application runs on the desktop but it can't run in the device and we won't build it into a native application. Spring Boot 应用程序在桌面上运行,但不能在设备中运行,我们不会将其构建为本机应用程序。 It can serve as a backed on a server which the device needs to "see" which means you need a web address that's accessible by the device.它可以作为设备需要“看到”的服务器上的支持,这意味着您需要设备可以访问的 web 地址。

If it's on your local machine and you're connected to the local.network you need to allow HTTP access (Android requires HTTPS by default) by using this .如果它在你的本地机器上并且你连接到 local.network 你需要允许 HTTP 访问(Android 默认需要 HTTPS)通过使用这个.

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 WebSockets (STOMP) 将音频从后端 Spring Boot 流式传输到前端 Vuejs - WebSockets (STOMP) streaming audio from back-end Spring Boot to front-end Vuejs 如果我们使用前端 Angularjs 和后端 spring-boot,则被 CORS 策略处理阻止? - blocked by CORS policy handling if we using front-end Angularjs and back-end spring-boot? 无法从反应前端访问上传的图像到 spring 启动后端 - Unable to access uploaded image from react front-end to spring boot back-end spring-boot 前后端机怎么分开? - How seperate Front-End & Back-End machine in spring-boot? Spring Boot Back-End with Angular Front-End 从普罗米修斯和健康端点获取状态和指标,但 401 - Spring Boot Back-End with Angular Front-End getting status and metrics from prometheus and health endpoint but 401 如何使用 Azure AD 在 Angular(前端)和 Spring Boot(后端)之间实现 OAuth 2.0 授权代码流 - How to implement OAuth 2.0 authorization code flow between Angular (Front-End) and Spring Boot (at Back-End) using Azure AD 在我的情况下,我应该如何使用 OAuth 2.0 授权授予(反应前端,Spring 引导后端) - How should I use the OAuth 2.0 Authorization grant in my case (React front-end, Spring Boot back-end) 对后端和前端使用nginx路由 - Use nginx routing for both back-end and front-end 在 Angular 前端访问 JWT 授权令牌 - 通过响应 header 从后端(弹簧)发送 - Accessing JWT Authorization token in Angular front-end - sent from back-end(spring) via response header Web应用程序从后端到前端重定向中的支付网关集成问题 - Payment gateway integration problem in redirection from back-end to front-end in web application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM