Java 应用与开发 - MVC 和框架初步
getParameter("name"); 3 String password = request.getParameter("password"); 5 UserHandler userHandler = new UserHandler(); 6 if(userHandler.authenticate(name, password)) { 7 %> 8Congratulations, login getParameter("name"); 9 String password = req.getParameter("password"); 11 UserHandler userHandler = new UserHandler(); 12 if(userHandler.authenticate(name, password)) { 13 message = "恭喜你,登录成功"; 14 } else 10
11 16 3struts2 12org.apache.struts2.dispatcher.ng.filter. 13 StrutsPrepareAndExecuteFilter 14
Spring Framwork Testing v5.3.36 SNAPSHOT
your application should be testable in JUnit or TestNG tests, with objects instantiated by using the new operator, without Spring or any other container. You can use mock objects (in conjunction with other require a new Spring container } ① Dirty the context before the current test class. Kotlin @DirtiesContext(classMode = BEFORE_CLASS) ① class FreshContextTests { // some tests that require a new Spring @DirtiesContext(classMode = BEFORE_EACH_TEST_METHOD) ① class FreshContextTests { // some tests that require a new Spring container } ① Dirty the context before each test method. 19 Kotlin @DirtiesContext(classMode
0 码力 |
193 页 |
2.53 MB
| 1 年前
3
Nacos架构&原理
次数 1.设置 TCP 参数 2.自定义心 跳 IdeHandl er,监听通道 读写事件 1.自定义心 跳,KeepAli veFilter 1.自定义心 跳,ping-po ng 包探测 1.自定义 kee p alive 机制 基于 mina, KeepAliveF ilter 事件通知 正常关闭 有事件通知 有事件通知 有事件通知 有事件通知 有事件通知 有事件通知 complete 事 件 可 实 现) 支持 支持 支持 支持 支持 服务端感知 断连 支持 (官方不建 议使用) 支持 支持 支持 支持 支持 心跳保活 应用层自定 义,ping-po ng 消息 应用层自定 义,单 byte ack 自定义 kee palive fra me TCP+ 自定 义 自定义 kee palive filte r 性能 tps 安全性 存入 ServerMemberManager 。 private void readClusterConfFromDisk() { Collection tmpMembers = new ArrayList<>(); try { List tmp = ApplicationUtils.readClusterConf(); tmpMembers = MemberUtils
0 码力 |
326 页 |
12.83 MB
| 9 月前
3
《Java 应用与开发》课程讲义 - 王晓东
extends false final finally float for if implements import instanceof int interface long native new null package private protected public return short static super switch synchronized this volatile >>、<<、>>>、&、|、^、~ 赋值运算符 =、扩展赋值运算符,如+=、/=等 条件运算符 ? : 其他运算符 包括分量运算符 . 、下标运算符[ ]、实例运算符 instanceof、内存分配运算符 new、 强制类型转换运算符(类型)、方法调用运算符()等 图 2.1 Java 运算符 2.1.6 从键盘获得输入 由键盘输入的数据,不管是文字还是数字,Java 皆视为字符串,若是要由键盘输 num1, num2; 5 String str1, str2; 6 InputStreamReader in; 7 in = new InputStreamReader(System.in); 8 BufferedReader buf; 9 buf = new BufferedReader(in); 10 System.out.print(”请输入第一个数:”); 11 str1 = buf
0 码力 |
330 页 |
6.54 MB
| 1 年前
3
Spring Boot 2.2.0.M6 Reference Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242 New Relic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276 7.2.4. Initialize a New Project. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . check your current Java installation by using the following command: $ java -version If you are new to Java development or if you want to experiment with Spring Boot, you might want to try the Spring
0 码力 |
518 页 |
12.25 MB
| 1 年前
3
Spring Boot 2.2.0.RC1 Reference Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242 New Relic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276 7.2.4. Initialize a New Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . check your current Java installation by using the following command: $ java -version If you are new to Java development or if you want to experiment with Spring Boot, you might want to try the Spring
0 码力 |
518 页 |
10.93 MB
| 1 年前
3
Spring Boot 2.2.5.RELEASE Reference Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242 New Relic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 7.2.4. Initialize a New Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . check your current Java installation by using the following command: $ java -version If you are new to Java development or if you want to experiment with Spring Boot, you might want to try the Spring
0 码力 |
521 页 |
11.00 MB
| 1 年前
3
Spring Boot 2.2.8.RELEASE Reference Guide
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244 New Relic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279 7.2.4. Initialize a New Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . check your current Java installation by using the following command: $ java -version If you are new to Java development or if you want to experiment with Spring Boot, you might want to try the Spring
0 码力 |
523 页 |
11.05 MB
| 1 年前
3
Spring Boot 2.2.4.RELEASE Reference Guide
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242 New Relic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 7.2.4. Initialize a New Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . check your current Java installation by using the following command: $ java -version If you are new to Java development or if you want to experiment with Spring Boot, you might want to try the Spring
0 码力 |
521 页 |
11.00 MB
| 1 年前
3
Spring Boot 2.2.7.RELEASE Reference Guide
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243 New Relic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278 7.2.4. Initialize a New Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . check your current Java installation by using the following command: $ java -version If you are new to Java development or if you want to experiment with Spring Boot, you might want to try the Spring
0 码力 |
522 页 |
11.01 MB
| 1 年前
3
共 416 条
- 1
- 2
- 3
- 4
- 5
- 6
- 42