超级管理员

来源:11-14 添加拦截器下

我总是那么的乖

2020-04-17

超级管理员页面,操作都能显示成功,但是所有数据都没有改变图片描述
debug调试,找到不js文件…只有main的
图片描述

写回答

3回答

慕妹5158713

2020-05-13

请问下你解决了吗?我也有相同的问题,但是pathutil的配置我也改掉了

0
2
慕妹5158713
回复
我总是那么的乖
我也只能改回原来的写法,而且部署到服务器上有些功能没法用,但是本地的tomcat是正常运行的
2020-05-21
共2条回复

我总是那么的乖

提问者

2020-04-17

//img1.sycdn.imooc.com/szimg/5e9983d60915552207410263.jpg

超级管理员添加头条,从headlinecontorller跳到service在一步步跳到PathUtil中,这步空值?

private static String headLinePath;

private static String pcParentPath;

private static String productCategoryPath;

@Value("${headline.relevant.path}")

public void setHeadLinePath(String headLinePath) {

PathUtil.headLinePath = headLinePath;

}

@Value("${pcParent.relevant.path}")

public void setPcParentPath(String pcParentPath) {

PathUtil.pcParentPath = pcParentPath;

}

@Value("${productCategory.relevant.path}")

public void setProductCategoryPath(String productCategoryPath) {

PathUtil.productCategoryPath = productCategoryPath;

}

public static String getHeadLineImagePath() {

return headLinePath.replace("/", seperator);

}

public static String getPcParentPath() {

return pcParentPath.replace("/", seperator);

}

public static String getProductCategoryPath() {

return productCategoryPath.replace("/", seperator);

}


0
3
翔仔
回复
我总是那么的乖
可是看同学的调试信息,明明用的是headlinePath呀,跟iimagePath没啥关系吧?主要是看看存入数据库的时候,路径从哪里来的,然后给路径赋正确的值就好了,我们上下文不一致,也没法帮你精确定位,需要同学调试一下,抓住根源,逆推,很快就解决了
2020-04-25
共3条回复

翔仔

2020-04-17

同学好,主要调试一下,看看后端是否收到数据并且更新进去,然后看看html页面有没有引入相关的js文件

0
0

Java双版本(SSM到SpringBoot)校园商铺全栈开发

SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需

5137 学习 · 8152 问题

查看课程