Comments (10)
@harryzzp 如果你使用npm运行,应该使用npm run start:no-mock命令。默认npm start是mock的,模拟后台操作的,这个我在最初开发的时候用了,后面成型后就弃用了。
所以build之后打包在war里,用9099端口访问最佳。开发的时候用这种形式比较好,webpack热更新方便快捷。
from redtorch.
直接使用http://127.0.0.1:9099/ 访问,新的版本已经完全重构了页面结构。
from redtorch.
还是一样的错误,telnet 证实9099端口确实已经打开
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Wed Nov 21 13:47:06 CST 2018
There was an unexpected error (type=Not Found, status=404).
Not Found
from redtorch.
@ssh352 换eclipse部署。
@sun0x00 我在IDEA里面部署访问不了static资源的问题,无论是main分支还是dev分支。。。
from redtorch.
@harryzzp 是指用eclipse 启动 RtApplication吗?谢谢~
from redtorch.
@ssh352 刚试了下dev分支,在eclipse下启动RtApplication后,确实也不能正常访问http://127.0.0.1:9099/。
同样报404错误。
2018-11-21 16:18:58.136 [main] INFO Jdk14Logger >>> Root mapping to handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-11-21 16:18:59.608 [main] INFO Jdk14Logger >>> Registering beans for JMX exposure on startup
2018-11-21 16:19:00.370 [main] INFO Jdk14Logger >>> Undertow started on port(s) 9099 (http) with context path ''
2018-11-21 16:19:00.380 [main] INFO Jdk14Logger >>> Started RtApplication in 24.171 seconds (JVM running for 25.508)
2018-11-21 16:19:00.383 [main] INFO SocketIOServer >>> Session store / pubsub factory used: MemoryStoreFactory (local session store only)
2018-11-21 16:19:07.437 [XNIO-2 task-1] INFO ServletContextImpl >>> Initializing Spring FrameworkServlet 'dispatcherServlet'
2018-11-21 16:19:07.441 [XNIO-2 task-1] INFO Jdk14Logger >>> FrameworkServlet 'dispatcherServlet': initialization started
2018-11-21 16:19:07.509 [XNIO-2 task-1] INFO Jdk14Logger >>> FrameworkServlet 'dispatcherServlet': initialization completed in 67 ms
2018-11-21 16:19:10.046 [nioEventLoopGroup-2-1] INFO SocketIOServer$1 >>> SocketIO server started at port: 9098
2018-11-21 16:19:10.051 [main] INFO SocketIOCommandLineRunner >>> SocketIO服务启动成功!
from redtorch.
@harryzzp, 确实是这样~ 期待@sun0x00更新
from redtorch.
@ssh352
@harryzzp
这个问题是这样的,gitignore文件中配置了规则,忽略了所有dist文件夹。在RedTorch\rt-front-web\src\main\webapp\static\ReactSPA\下有个dist文件夹。这个文件夹是Node.js的npm build自动生成的。
ReactSPA实际是一个单独的项目。
推荐安装Node.js,然后使用vscode直接打开这个目录,这是一个完整的前端项目。
from redtorch.
@ssh352
@harryzzp
这个问题是这样的,gitignore文件中配置了规则,忽略了所有dist文件夹。在RedTorch\rt-front-web\src\main\webapp\static\ReactSPA\下有个dist文件夹。这个文件夹是Node.js的npm build自动生成的。ReactSPA实际是一个单独的项目。
推荐安装Node.js,然后使用vscode直接打开这个目录,这是一个完整的前端项目。
我在vscode下npm install && npm start 后可以打开http://localhost:8000/user/login?redirect=http%3A%2F%2Flocalhost%3A8000%2Ftrade%2Fbasic%2FtradeBoard
然后登陆报错
后台看token是1:
2018-11-22 14:42:58.822 [main] INFO Jdk14Logger >>> Registering beans for JMX exposure on startup
2018-11-22 14:42:59.280 [main] INFO Jdk14Logger >>> Undertow started on port(s) 9099 (http) with context path ''
2018-11-22 14:42:59.300 [main] INFO Jdk14Logger >>> Started RtApplication in 25.432 seconds (JVM running for 26.539)
2018-11-22 14:42:59.344 [main] INFO SocketIOServer >>> Session store / pubsub factory used: MemoryStoreFactory (local session store only)
2018-11-22 14:43:06.486 [main] INFO SocketIOCommandLineRunner >>> SocketIO服务启动成功!
2018-11-22 14:43:06.486 [nioEventLoopGroup-2-1] INFO SocketIOServer$1 >>> SocketIO server started at port: 9098
2018-11-22 14:43:35.032 [XNIO-2 task-1] INFO ServletContextImpl >>> Initializing Spring FrameworkServlet 'dispatcherServlet'
2018-11-22 14:43:35.121 [XNIO-2 task-1] INFO Jdk14Logger >>> FrameworkServlet 'dispatcherServlet': initialization started
2018-11-22 14:43:35.198 [XNIO-2 task-1] INFO Jdk14Logger >>> FrameworkServlet 'dispatcherServlet': initialization completed in 69 ms
2018-11-22 14:44:08.147 [nioEventLoopGroup-3-1] WARN RtApplication$1 >>> SocketIO认证失败,Token-[1] Address-[/0:0:0:0:0:0:0:1:56122]
2018-11-22 14:44:58.263 [nioEventLoopGroup-3-2] WARN RtApplication$1 >>> SocketIO认证失败,Token-[1] Address-[/0:0:0:0:0:0:0:1:56157]
from redtorch.
暂时不关闭这个问题,让更多朋友看到
from redtorch.
Related Issues (20)
- 有没有架构文档? HOT 1
- 📢准备弃用Ant Design前端框架,改为Microsoft Office UI Fabric HOT 6
- 请教RedTorch的运行机制 HOT 1
- 关于FastEvent的设计与使用困惑 HOT 1
- socketio的跨域问题如何解决
- RedTorch v0.2 貌似还没看到 HOT 1
- FastEvent使用的一个问题 HOT 1
- 关于CTP帐号登录问题 HOT 6
- 导入项目所出现的几个问题 HOT 1
- MDB sql文件缺失 HOT 1
- 最新版本使用websocket替换了原来的socket其中除了通用性之外还有什么好处吗? HOT 1
- IbGateway
- 增加使用文档Wiki HOT 2
- 📢更新预告 HOT 2
- x64v6v3v19t1v 连不上服务器 HOT 2
- bug: xyz.redtorch.node.slave.service.impl包下ConfigServiceImpl.java
- 客户端验证 HOT 1
- OrderStatusEnum 数值有误 HOT 1
- 问题咨询 HOT 1
- rt-gateway-ctp工程resource下缺少6v6v9版本的so文件 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redtorch.