Giter VIP home page Giter VIP logo

Comments (12)

hb0730 avatar hb0730 commented on June 5, 2024

image

from boot-admin.

hb0730 avatar hb0730 commented on June 5, 2024

image

from boot-admin.

keith-ch avatar keith-ch commented on June 5, 2024

大佬,没看明白,
是要修改这两个代码吗
访问什么地址,能进入系统页面?

from boot-admin.

keith-ch avatar keith-ch commented on June 5, 2024

访问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.

hb0730 avatar hb0730 commented on June 5, 2024

这个项目是前后分离的项目,前端项目https://github.com/hb0730/boot-admin-ui ,并不需要修改任何信息

from boot-admin.

keith-ch avatar keith-ch commented on June 5, 2024

这个项目是前后分离的项目,前端项目https://github.com/hb0730/boot-admin-ui ,并不需要修改任何信息

这俩项目如何整合呢?或者说我怎么给boot-admin增加前端页面

from boot-admin.

hb0730 avatar hb0730 commented on June 5, 2024

具体的可以看一看springboot与template模板引擎的配置,一般放置resources的template或者static等目录,然后开放对应的path即可

from boot-admin.

keith-ch avatar keith-ch commented on June 5, 2024

具体的可以看一看springboot与template模板引擎的配置,一般放置resources的template或者static等目录,然后开放对应的path即可

谢谢大佬!

from boot-admin.

keith-ch avatar keith-ch commented on June 5, 2024

@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.

hb0730 avatar hb0730 commented on June 5, 2024

https://d2.pub/zh/doc/d2-admin/webpack/#vue-config-js

from boot-admin.

hb0730 avatar hb0730 commented on June 5, 2024

其实可以开放的时候分离,部署的时候在一起

from boot-admin.

hb0730 avatar hb0730 commented on June 5, 2024

不过我自己没有尝试过在一起的

from boot-admin.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.