1. nginx(读着: engine x)   1) nginx的官网文档《Beginer's Guide》  这个指南大体讲了三个常用配置的例子:serving static content, setting up a simple proxy server; setting up fastCGI proxy server。 首先如何启动和停止nginx. To start nginx, run the executable ...

    阅读全文
  2. 1)两数和 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,你不能重复利用这个数组中同样的元素。 示例: 给定 nums = [2, 7, 11, 15], target = 9 因为 nums[0] + nums[1] = 2 + 7 = 9 所以返回 [0, 1] 来源:力扣(LeetCode) 链接 ...

    阅读全文
  3. 56840

    mac中打开atom或postman时不显示窗口,但是docker中表示该应用已经打开。 解决方案: 这个跟mac的docker设置有关。 A preventive fix for Mac users is: Changing the dock settings to "Double-click a window's title bar to: Minimize" [instead of Zoom]. 参考文档:https://gith ...

    阅读全文
  4. 42370

    npm cli命令说明文档: 官方文档: https://docs.npmjs.com/cli-documentation/ 以及《npm cli commands - npm指令大全》https://blog.csdn.net/zmrdlb/article/details/53204116 CLI commands > access Set access level on published packages > adduser Add a re ...

    阅读全文
  5. 《mac 使用 pf 做端口转发》:https://www.jianshu.com/p/6052831a8e91 《MAC pf 防火墙OS 10.10 开启80(http)端口的方法》https://my.oschina.net/china008/blog/343049 《Mac 使用 Pfctl 来完成 Docker 的网络映射》https://toutiao.io/posts/d7ljnp/preview 遇到了局域网内无法访问mac电脑上的web app,于是参考了上文 ...

    阅读全文
  6.  官方文档: https://docs.oracle.com/javaee/7/api/javax/persistence/ManyToMany.html     参考文档: What is An Association? : https://docs.oracle.com/cd/A97336_01/buslog.102/bc4j/developing_bc_projects/bc_awhatisanassoc.ht ...

    阅读全文
  7. Bcrypt password在线生成器:https://www.browserling.com/tools/bcrypt ...

    阅读全文
  8. JAVA8的java.util.function包 https://www.cnblogs.com/linzhanfly/p/9686941.html java.util.function.Function的用法 https://www.jianshu.com/p/3c27dfd647f1 https://blog.csdn.net/huo065000/article/details/78964382 java8双冒号用法: https://www.jians ...

    阅读全文
  9. 嵌入式Tomcat Web服务器的使用 在运行web工程时,常常要频繁启动tomcat,使用嵌入式tomcat可以减少部分重复操作。 1、下载tomcat5.0.28embed.zip 解压文件夹复制到工程下。   http://archive.apache.org/dist/tomcat/tomcat-5/v5.0.28/bin/jakarta-tomcat-5.0.28-embed.zip 2、源码实现 import java.io.File; impor ...

    阅读全文
  10. 本文链接:https://blog.csdn.net/strivezxq/article/details/44560771  把spring 相关类做了下整理,把spring主要涉及的类都整理成类图,方便查看它们之前的关系,也能帮助更好的阅读分析源码. 1. IOC容器 BeanFactory类图: 2.  资源Resource相关类图: 3. 资源加载器ResourceLoader相关类图: 4. spring Bean定义解析器相关: ...

    阅读全文
  11. <<Java™ in a Nutshell: A Deskop Quick Reference >>   docstore.mik.ua/orelly/java-ent/jnut/index.htm ...

    阅读全文
  12. 深入理解Java类型信息(Class对象)与反射机制 可以读下这篇文章:https://blog.csdn.net/javazejian/article/details/70768369   写的非常清晰。 ...

    阅读全文
  13. 转载自:https://www.ibm.com/developerworks/cn/java/j-lo-jsonlib/index.html 概述 如今大量的 Web 站点应用了 AJAX 技术,通过更少的数据通讯,服务器能够更快的反馈用户请求,再通过 Javascript 的控制,让使用者有了更好的用户体验。JSON 是一种轻量级的数据交换语言,它是 Javascript 的一个子集,又有良好的可读性,经常用于客户端和服务器间的数据交换。因此,在服务器端,常常需要将实体对象(Jav ...

    阅读全文
  14. Besides ApplicationContextAware and BeanNameAware (discussed earlier), Spring offers a wide range of Aware callback interfaces that let beans indicate to the container that they require a certain infrastructure de ...

    阅读全文
  15. AOP concepts2019-08-12

    Let us begin by defining some central AOP concepts and terminology. These terms are not Spring-specific... unfortunately, AOP terminology is not particularly intuitive; however, it would be even more confusing if Spring used its own terminology. ...

    阅读全文
  16. 在spring boot 中使用annotation 配置web.xml中的信息时,不用担心RequestMapping的Url pattern重复,因为在启动 server的时候就会初始化RequestMappingHandlerMapping,会自动检测是否有重复的url mapping. 比如下面的异常就是因为有重复的url mapping: /{version}/hello   org.springframework.beans.factory.BeanCrea ...

    阅读全文
  17. 在 Java 8 之前,接口只能有抽象方法。这些方法的实现必须在单独的类中提供。因此,如果要在接口中添加新方法,则必须在实现同一接口的类中提供其实现代码。为了克服这个问题,Java 8 引入了默认方法(default method)的概念,该方法允许接口具有实现的方法,而不会影响实现接口的类。 // A simple program to Test Interface default // methods in java interface TestInterface { ...

    阅读全文
  18. Spring configuration property的优先级官方说明:https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#boot-features-external-config Externalized Configuration Spring Boot lets you externalize your configuration so that you can ...

    阅读全文
  19. Heroku2019-08-07
    36910

    https://www.youtube.com/watch?v=QTOkqzCTGxw https://www.heroku.com/ ...

    阅读全文