虚拟路径映射配置:
registry.addResourceHandler("/image/productIntroImgs/**").addResourceLocations("file:D:\\java1234-mall-v3\\productIntroImgs\\");registry.addResourceHandler("/image/productParaImgs/**").addResourceLocations("file:D:\\java1234-mall-v3\\productParaImgs\\");
mysql 替换某个字段中的某个字符
update 表名 set 字段名=REPLACE (字段名,'原来的值','要修改的值')update t_product as a set a.`productIntroImgs`=REPLACE (a.`productIntroImgs`,'192.168.0.116','localhost:8081') ;update t_product as a set a.`productParaImgs`=REPLACE (a.`productParaImgs`,'192.168.0.116','localhost:8081') ;