logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

spring boot中spring.profiles.active的用法

1、在xml配置中加上 context:property-placeholder location="classpath:${spring.profiles.active}/app.properties"/>2、程序启动的时候加上jvm参数 -Dspring.profiles.active="dev"

pycharm运行python报错 CreateProcess error=2, 系统找不到指定的文件

运行别人的项目出现报错Error running 'train_frcnn': Cannot run program "C:\Users\Administrator\anaconda\envs\py3\bin\python" (in directory "E:\xxx\xxxxx"): CreateProcess error=2, 系统找不到指定的文件。此报错乃是运行环境有问题,找到项目目录下的.

Springboot web项目简单统计在线人数

web项目中都是短连接,无法根据连接的开启与断开做判断,只能简单的根据session的创建与销毁来判断在线人数,做不到实时统计。好了,直接上代码#1、springboot的启动类加上@ServletComponentScan注解#2、创建一个监听器@WebListenerpublic class OnlineSessionListener implements HttpSessionListene

spring+mybatis-plus 基于注解注入DataSource失败的解决

//Mybatis-plus的配置类(略去无关代码)@Configurationpublic class MyBatisConfig {@Resourceprivate DruidDataSource dataSource;@Beanpublic MybatisSqlSessionFactoryBean sqlSessionFactory(){MybatisSqlSessionFactoryBea

#spring
godot export template下载

【代码】godot export template下载。

文章图片
#godot#游戏引擎
Access-Control-Allow-Origin 解决跨域权限问题

Nginx 解决办法:add_header Access-Control-Allow-Origin *;add_header Access-Control-Allow-Headers X-Requested-With;add_header Access-Control-Allow-Methods GET,POST,OPTIONS;将这段代码添加到 http{} 或者静态资源

springboot+vue整合websocket(含鉴权)

springboot+vue+websocket 包含spring security鉴权

#spring boot#websocket
到底了