Comments (12)
from boot-admin.
from boot-admin.
大佬,没看明白,
是要修改这两个代码吗
访问什么地址,能进入系统页面?
from boot-admin.
访问http://localhost:8088/auth/login
显示:
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Wed Sep 22 11:30:50 CST 2021
There was an unexpected error (type=Method Not Allowed, status=405).
Request method 'GET' not supported
org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'GET' not supported
at org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping.handleNoMatch(RequestMappingInfoHandlerMapping.java:213)
at org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.lookupHandlerMethod(AbstractHandlerMethodMapping.java:422)
后台日志:
2021-09-22 11:31:27.693 WARN 18500 --- [nio-8088-exec-6] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'GET' not supported]
from boot-admin.
这个项目是前后分离的项目,前端项目https://github.com/hb0730/boot-admin-ui ,并不需要修改任何信息
from boot-admin.
这个项目是前后分离的项目,前端项目https://github.com/hb0730/boot-admin-ui ,并不需要修改任何信息
这俩项目如何整合呢?或者说我怎么给boot-admin增加前端页面
from boot-admin.
具体的可以看一看springboot与template模板引擎的配置,一般放置resources的template或者static等目录,然后开放对应的path即可
from boot-admin.
具体的可以看一看springboot与template模板引擎的配置,一般放置resources的template或者static等目录,然后开放对应的path即可
谢谢大佬!
from boot-admin.
@hb0730 大佬,我把boot-admin和boot-admin-ui整合了,然后修改vue.config.js指定后端url:
代码如下:
module.exports = {
// 根据你的实际情况更改这里
publicPath,
lintOnSave: true,
devServer: {
publicPath, // 和 publicPath 保持一致
disableHostCheck: process.env.NODE_ENV === 'development', // 关闭 host check,方便使用 ngrok 之类的内网转发工具,
proxy: {
'/': {
target: 'http://localhost:8088', //目标接口域名
secure: false, //false为http访问,true为https访问
changeOrigin: true, //是否跨域
pathRewrite: {
'^/': '/' //重写接口
}
}
}
},
登录可以,但是进去之后点页面都提示 page not found,这是为什么呢?
from boot-admin.
https://d2.pub/zh/doc/d2-admin/webpack/#vue-config-js
from boot-admin.
其实可以开放的时候分离,部署的时候在一起
from boot-admin.
不过我自己没有尝试过在一起的
from boot-admin.
Related Issues (19)
- 能否把mysql的sql文件共享下?
- WIP: SpringBoot3 版本以及前端同步
- 是否有把mybatis换成jpa的计划
- 没什么注释
- 哪个二货把预览搞废了? HOT 1
- 免费云服务
- WIP: 适配即将发布的pure-admin v6版本 HOT 2
- 打包没有依赖包 HOT 3
- 哥,这是你自己写的吗好牛啊
- oss服务 HOT 2
- Quartz JOB
- Message Services
- 菜单被人删光了? HOT 1
- 作者你好 请问能否出一个后端部署的详细文档 HOT 14
- boot-admin和boot-admin-ui怎么配置才能正常登录? HOT 8
- 移除com.hb0730:commons-mail
- maven plugin 是哪个版本 HOT 1
- WIP: SpringBoot3 版本以及前端同步 HOT 2
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 boot-admin.