Dynamic stream handling 动态流处理 Dependency To use Akka Streams, add the module to your project: val AkkaVersion = "2.6.9" libraryDependencies += "com.ty ...
分类:
其他好文 时间:
2020-10-12 20:14:08
阅读次数:
21
简介 注入问题是安全中一个非常常见的问题,今天我们来探讨一下java中的SQL注入和XML注入的防范。 SQL注入 什么是SQL注入呢? SQL注入的意思是,用户输入了某些参数,最终导致SQL的执行偏离了程序设计者的本意,从而导致越权或者其他类型的错误。 也就是说因为用户输入的原因,导致SQL的涵义 ...
分类:
编程语言 时间:
2020-10-12 20:05:47
阅读次数:
28
介绍 IOC,inversion of control,控制反转。经典的,我们用关键字new去主动创建对象。而将创建对象的功能交给容器,再根据需要获取就称为控制反转。这里的容器称为IOC容器。 简单案例 1、pom.xml <dependency> <groupId>org.springframew ...
分类:
编程语言 时间:
2020-10-10 18:03:44
阅读次数:
45
假如你使用的是spring-cloud-alibaba微服务技术栈 单个服务独有配置文件 即去除应用程序的状态,配置统一外部化管理,方便进行水平的伸缩。 集成步骤: 假如我有一个应用app-design; 1,引入依赖: <dependency> <groupId>com.alibaba.cloud ...
分类:
其他好文 时间:
2020-10-10 17:04:36
阅读次数:
17
?操作步骤 ?(1)在pom.xml中引入thymeleaf; ?(2)如何关闭thymeleaf缓存 ?(3)编写模板文件.html ?(4)编写访问模板文件controller 在pom.xml加入thymeleaf的依赖: <dependency> <groupId>org.springfra ...
分类:
其他好文 时间:
2020-10-09 21:11:22
阅读次数:
21
1.pom.xml 一般使用idea新建一个SpringBoot web项目时,一般都会自动引入此依赖,如果没有,请手动引入。 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-start ...
分类:
编程语言 时间:
2020-10-09 20:39:22
阅读次数:
20
Application Exploits, Part III CROSS-SITE SCRIPTING(XSS) Injection attack in which an attacker sends malicious code(client-side script) to a web appli ...
分类:
Web程序 时间:
2020-10-09 20:20:18
阅读次数:
34
如何使用Nacos作为配置中心统一管理配置 1)、引入依赖, <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId> </ ...
分类:
其他好文 时间:
2020-10-08 19:38:16
阅读次数:
16
<repositories> <repository> <id>hadoop</id> <url>https://repository.cloudera.com/artifactory/cloudera-repos</url> </repository> <dependency> <groupId> ...
分类:
其他好文 时间:
2020-10-08 19:30:36
阅读次数:
21
使用SpringBoot进行单元测试 依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> ...
分类:
编程语言 时间:
2020-09-24 21:18:50
阅读次数:
37