- Mastering Microservices with Java
- Sourabh Sharma
- 187字
- 2021-07-02 13:03:32
An embedded web server
Spring Boot, by default, provides Apache Tomcat as an embedded application container. This book will use the Jetty-embedded application container in place of Apache Tomcat. Therefore, we need to add a Jetty application container dependency to support the Jetty web server.
Jetty also allows you to read keys or trust stores using classpaths; that is, you don't need to keep these stores outside the JAR files. If you use Tomcat with SSL, then you will need to access the key store or trust store directly from the filesystem, but you can't do that using the classpath. The result is that you can't read a key store or a trust store within a JAR file because Tomcat requires that the key store (and trust store if you're using one) is directly accessible on the filesystem. This situation may change after this book has been written.
This limitation doesn't apply to Jetty, which allows the reading of keys or trust stores within a JAR file. A relative section on the pom.xml file of the rest module is as follows:
<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jetty</artifactId> </dependency> </dependencies>
- iOS面試一戰(zhàn)到底
- Moodle Administration Essentials
- 劍指Offer(專項突破版):數(shù)據(jù)結(jié)構(gòu)與算法名企面試題精講
- SQL語言從入門到精通
- 深入淺出RxJS
- The Complete Coding Interview Guide in Java
- Learning Vaadin 7(Second Edition)
- Learning OpenCV 3 Computer Vision with Python(Second Edition)
- AIRIOT物聯(lián)網(wǎng)平臺開發(fā)框架應(yīng)用與實戰(zhàn)
- Python深度學(xué)習(xí)原理、算法與案例
- Go語言底層原理剖析
- Getting Started with Polymer
- Visual Basic程序設(shè)計(第三版)
- Instant Apache Camel Messaging System
- Instant JRebel