- 博客(14)
- 资源 (2)
- 收藏
- 关注
翻译 plt annotate 绘制箭头
ax,plt.subplot(111) t = np.arange(0.0, 5.0, 0.01) s = np.cos(2*np.pi*t) line, = plt.plot(t, s, lw=2) plt.annotate('local max', xy=(2, 1), xytext=(3, 1.5), arrowprops=dict(facecolor='black', shrink...
2019-06-15 13:28:42
3669
原创 matplotlib plot 折线图参数
matplotlib import numpy as np # evenly sampled time at 200ms intervals t = np.arange(0., 5., 0.2) # red dashes, blue squares and green triangles plt.plot(t, t, 'r--', t, t**2, 'bs', t, t**3, 'g^') plt...
2019-06-15 12:56:20
1143
原创 Python pyplot style
在matplotlib 中 提供了很多样式来美化绘图。 在plt.style.available中 import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl print(plt.style.available) plt.style.use('grayscale') [out]: ['bmh', 'clas...
2019-06-14 12:27:03
1427
原创 Spring Bean配置详
Bean是Spring中非常重要的部分, <Bean> factory-bean : 属性来指定实例化Bean的Bean factory-method : 属性来指定实例化Bean的方法. 例如 <!--定义实例工厂Bean --> <bean id="beanInstanceFactory" class="cn.javass.spring.cha...
2019-06-11 19:11:06
141
原创 Servlet配置的几种方法
Servlet配置手册 Servlet是在服务器上运行的小程序,一个Servlet就是一个Java类,并且可以通过“请求-响应”的编程模型来访问这个驻留在服务器内存中的Servlet程序 web.xml配置 基础配置模板 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun....
2019-06-11 00:42:13
911
原创 Spring Boot jdbc
Spring Boot jdbc 添加依赖 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.6.RELEASE<...
2019-06-10 20:36:58
123
原创 缓存管理器 Ehcache
EhCache 缓存是实际工作中非常常用的一种提高性能的方法, 我们会在许多场景下来使用缓存。 pom添加 <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-ehcache</artifactId> <version>1...
2019-06-09 21:33:47
445
原创 Python调用浏览器实现课程表的获取
代码如下: import matplotlib.pyplot as plt # plt 用于显示图片 import matplotlib.image as mpimg # mpimg 用于读取图片 def showimg(path): lena = mpimg.imread(path) # 读取和代码处于同一目录下的 lena.png plt.imshow(lena) # 显示图片...
2019-06-09 15:44:32
411
原创 DataSource 详解
JdbcTemplate import org.springframework.jdbc.core.JdbcTemplate; Spring为各种支持的持久化技术,都提供了简单操作的模板 使用连接池初始化。 连接池DataSource JdbcTemplate使用连接池初始化 package javax.sql;例: package com.github.zhangkaitao.shiro.ch...
2019-06-09 15:01:01
6902
原创 shiro .ini文件配置
[main] #默认是/login.jsp authc.loginUrl=/login org.apache.shiro.web.filter.authc.BasicHttpAuthenticationFilter Shiro 内置了登录(身份验证)的实现:基于表单的和基于 Basic 的验证,其通过拦截器实现。 [main] authcBasic.applicationName=please l...
2019-06-08 14:33:19
435
转载 shiro-web.xml基础配置
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="htt...
2019-06-08 02:05:19
165
原创 WebListener
WebListener 用来监听特定对象的创建或销毁、属性的变化 ServletContextListener ServletContextListener 接口用于监听 ServletContext 对象的创建和销毁事件。 当 ServletContext 对象被创建时, 激发contextInitialized (ServletContextEvent sce)方法。 当 ServletCon...
2019-06-07 17:43:23
130
原创 Intellij IDEA 找不到tomcat服务器
Intellij IDEA 找不到tomcat服务器 在Settings中勾选: 这样就可以找到开启了:
2019-06-06 18:44:23
1684
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人