pnpm安装electron报错404解决方案

自定义镜像地址和版本解决

pnpm config set registry https://registry.npmmirror.com/

pnpm config set electron_mirror=https://cdn.npmmirror.com/binaries/electron/ 
pnpm config set electron_custom_dir=14.2.5

Terwer...小于 1 分钟经验分享pnpmnpmnodejs404electron
SpringBoot访问webapp下面的html等静态资源文件出现404解决方案

这里的前提是在src/main/目录下(跟src/main/resources同级)建好了webapp目录,并且在webapp下建好了WEB-INF。如图:

image-20220506152354284
image-20220506152354284

在做SpringBoot集成页面的时候,发现不能直接访问页面或者静态资源,都是报404,可以试试在pom.xml的build里面加入如下代码: (不想用jsp,只想用html或者其他的可以采用这种方式)


Terwer...大约 1 分钟实用技巧经验分享springbootwebapp404
关于Springboot配置thymeleaf的404问题

问题

我的yaml配置

server:
  port: 8080
resources:
  static-locations:
    - classpath:/static/
spring:
  thymeleaf:
    cache: false
    checktemplatelocation: true
    enabled: true
    encoding: UTF-8
    mode: HTML
    prefix: classpath:/templates/
    suffix: .html

Terwer...小于 1 分钟经验分享实用技巧error404springbootthymeleaf