springboot打包时,去掉资源文件 <build> <resources> <resource> <directory>src/main/resources</directory> <excludes> <exclude>*.properties</exclude> <exclude>*.xml</exclude> </excludes> </resource&g…
Redis 启动时指定配置文件需要通过 redis 服务启动才行: 安装服务的教程:http://blog.csdn.net/justinytsoft/article/details/54580919 然后启动服务的时候在后面跟上配置文件的名称就行了,如下: ./redis-server /opt/redis-3.2.3/redis.conf & 注意:需要在redis的安装目录下进行 PS:配置了密码之后,启动redis发现密码不起作用. 就是因为启动的时候没指定配置文件…
下载源文件方式安装nginx 会在/usr/local目录下安装nginx 此时虚拟机系统中会有两个nginx 如果启动的时候没有指定配置文件的位置,默认读取的配置文件就是/usr/local/nginx/conf/nginx.conf 就是这样被自己坑了,,, 如果想指定配置文件的位置:加上参数 -c nginx.conf path…
[root@MSJTVL-MJSP-A01 sm01]# vim /etc/rc.d/rc.local #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /v…
@2019-06-13 [小记] QT中添加的资源文件qrc时的路径问题小结…
在pom文件里面添加 <plugins> <!--定义项目的编译环境--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8<…
ClassPathResource resource = new ClassPathResource(publicKeyCer); File file = null; try { file = resource.getFile(); } catch (IOException e) { e.printStackTrace(); }InputStream inStream = new FileInputStream( file.getPath()); 一.需求场景有时候我们需要在项目中使用一些静态资…
springboot的请求路径一般会经过Controller处理,但是静态资源文件在请求之后是直接返回的.这涉及到俩个配置项. spring.mvc.static-path-pattern=/** spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/ 上面俩个是他们的默认配置,如果项目中没有任何配置,项…
在启动Springboot 项目时 2019-11-18 21:32:38.223 INFO 1080 --- [on(4)-127.0.0.1] o.s.web.servlet.DispatcherServlet : Completed initialization in 9 ms2019-11-18 21:32:38.390 INFO 1080 --- [on(9)-127.0.0.1] com.zaxxer.hikari.HikariDataSource : HikariPool-1 -…
def resource_path(self, relative): if hasattr(sys, "_MEIPASS"): return os.path.join(sys._MEIPASS, relative) return os.path.join(relative) def copy_GUI(self): root = tkinter.Tk() root.title("U盘拷贝小工具 v6.0") root.geometry("400x260&qu…