
前端
文章平均质量分 62
jsp
世俗的大尾巴也熊
想要一只蝈蝈啊
展开
-
Vue项目从零开始搭建
一.准备环境第一步 安装node.js根据实际操作系统选择安装包下载地址:https://nodejs.org/en/download/Cmd命令行输入 node –v检测安装是否成功第二步 npm设置大家都知道国内直接使用 npm 的官方镜像是非常慢的,这里推荐使用淘宝 NPM 镜像。npm install -g cnpm --registry=https://registry.npm.taobao.orgCmd命令行输入 npm –v检测安装是否成功第三步 安装web转载 2022-02-22 12:48:57 · 5038 阅读 · 0 评论 -
rewrite or internal redirection cycle while redirect to named location “@router“
1.问题描述前后端分离项目,通过nginx代理前端代码,浏览器报500 Internal Server Error,查看nginx报错日志问题报错为:rewrite or internal redirection cycle while redirect to named location "@router", client: 117.136.12.226, server: 127.0.0.1, request: "GET / HTTP/1.1", host: "182.254.242.219:2原创 2021-12-02 21:52:57 · 14473 阅读 · 0 评论 -
Springboot项目在访问域名前加小图标
1.生成名称为favicon.ico的小图标。我用的生成网址为:http://www.chami.com/html-kit/services/favicon/2.把favicon.ico放在指的静态文件下我的放在了static目录下(只要放在第3步可以访问的路径下都可以)。3.在jsp页面的<head>标签中引用<link href="../static/favicon.ico" type="image/x-icon" rel="icon">4.放.原创 2020-05-25 14:36:59 · 432 阅读 · 0 评论 -
Springboot项目打包成jar没有jsp文件
1.运行出错刚刚打的jar包,运行后出错。然后使用工具查看了jar包的源码,没有jsp文件。2. 在pom.xml中配置出现这种情况要在pom.xml中配置Springboot项目打jar包的方式。原本的方式如下图:重新配置后多加了如下代码:<build> <plugins> <plugin> <groupId>org.springframew..原创 2020-05-23 11:49:28 · 1741 阅读 · 0 评论 -
Springboot设置项目进入首页
1.目的访问http://localhost:8090/即可进入首页(http://localhost:+端口号)2.首页index.jsp首页放在该路径下3. 访问设置重写WebMvcConfigurer类中的addViewControllers()方法:页面跳转。(直接这样写就行)import org.springframework.context.annotation.Configuration;import org.springframework.core..原创 2020-05-23 11:10:27 · 1287 阅读 · 0 评论 -
JSP页面如何引用js文件?
前端新手,项目环境为Springboot+SSM+maven。一.配置引用环境1.在application.properties文件中做如下配置定义static文件夹存放静态文件。2. jsp与js目录如下3.jsp代码与js引用4.js代码二.运行1.初始页面2.点击进入...原创 2020-05-22 19:10:42 · 3406 阅读 · 0 评论