- 博客(13)
- 资源 (1)
- 收藏
- 关注
原创 Spring Boot actuator框架的一些安全考虑
微服务铺天盖地的来,引入Spring Boot actuator框架是为了服务作更好的监控与性能查看,Spring Boot actuator是一个为原生端点增加了更多的指标和度量信息,分为应用配置类,度量指标类。操作控制类,但是假如由于开发人员的疏忽把这些监控的请求地址都暴露出来了,攻击者会通过服务的配置信息对服务进行攻击,例如当我们访问/mappings这个返回这个服务控制器映射关系报告,可以
2017-06-19 11:19:52 4475
原创 分布式服务下Quartz任务框架配置
公司在使用Spring Cloud微服务架构,同时都使用Quartz任务框架进行任务调度,具体的结构如下所示: 配置具体见我的另一博文 http://blog.csdn.net/u011687186/article/details/72461102 但是存在这样一个问题,各个服务互相不相关,假如一个发起Job任务的服务挂掉以后,在到达执行任务的时间时,其它服务会执行这个任务,由
2017-06-16 16:33:54 2907
原创 Mybatis# $ 及SQL 踩坑
今天遇到这样一个问题下面是我服务器日志中打印的SQLSELECT COUNT(not_notice.id)FROM not_notice not_noticeWHERE 1 = 1 AND not_notice.state IN (?) AND not_notice.pk_uc_company = ?打印传入的参数是这样的Parameters: 1,3,4(String),
2017-06-15 16:13:09 320
原创 怎样使得Tomcat服务器启动更快 使用随机数与熵池策略
随着微服务技术快速发展,SpringCloud与Docker新的技术也不断涌现出来,但是SpringCloud已SpringBoot为基础开发的默认内嵌Tomcat服务器,在SpringCloud与Docker整合的时候,使用docker DockerFile或者docker-compose启动镜像文件的时候,需要同时启动多个Tomcat,由于Tomcat 的sessionId在启动使用Java的
2017-06-14 14:48:03 4194
转载 Linux yum与apt安装区别与联系
本文转载至http://www.cnblogs.com/garinzhang/p/diff_between_yum_apt-get_in_linux.html 一直使用的是yum安装的方式,收集一下其他的linux系列安装的方式。一般来说著名的linux系统基本上分两大类:1.RedHat系列:Redhat、Centos、Fedora等2.Debian系列:Debi
2017-06-13 16:43:45 4146
原创 Linux Systemd 简介
systemd是linux下的一款系统和服务管理器,为什么要使用systemd ? 在rpm包二进制方式安装的linux软件中,使用init守护进程进行服务状态的管理或者 使用service命令 例如启动Mysql数据库可以是 /etc/init.d/mysql start 或者service mysql start.使用linux init进程进行管理服务的时候有两个缺点:1.init系
2017-06-13 15:45:26 3150
原创 Python异常
处理异常try: text = input('Enter somint -->')except EOFError: print('Why did you do an EOF on me?')except KeyboardInterrupt: print('You Cancelled the operation,')else: print('You ente
2017-06-02 17:13:26 518
原创 Python输入输出
输入内容def reverse(text): return text[::-1]def is_palindrome(text): return text == reverse(text)something = input('Enter text: ')if is_palindrome(something): print('Yes ,it is a palindr
2017-06-02 17:10:38 339
原创 Python面向对象编程
实现文件备份类class Person: passp = Person()print(p)方法class Person: def say_hi(self): print('Hello Person class')p = Person()p.say_hi()__init__ 方法class Person: def __init__(self,name): s
2017-06-02 17:06:59 386
原创 Python数据结构
列表shoplist =['apple','mango','carrpt','banana']print('I have',len(shoplist),'items to purchase.')print('This items are:',end=' ')for item in shoplist: print(item,end=' ')print('\n I alse have
2017-06-02 17:01:56 392
原创 Python模块
import sysprint('The command line arguments are:')for i in sys.argv: print(i)print('\n\nThe PYTHONPATH is',sys.path,'\n')创建模块eg:def say_hi(): print('Hi, this is mymodule speaking.')__vers
2017-06-02 16:56:26 428
原创 Python函数
函数参数def say_hello(): print('hello word')say_hello()say_hello()函数变量def print_max(a,b): if a > b: print(a,'is max') elif a == b: print(b,'is equal to',a) else: print(b,'is max')print_
2017-06-02 16:51:06 318
原创 Python控制流
python学习代码都来之于 《简明Python教程》最新版本if:number = 23guess = int(input('Enter an integer:'))if guess == number: #新的代码块从里开始 print('Cougratulations,youguess it.') print('(but you do not win any prizes!
2017-06-02 16:43:05 401
新版eclipse安装activiti designer所要补充的jar包
2015-12-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人