Oracle 数据库

Oracle 用读写模式查询记录

  • select * from XXX a where AAA='258' for update
  • select a.rowid,a* from XXX a where AAA='258'

NexT 主题虽然已经很好看,但还可以在进一步美化。本文对做过的美化进行了大致的记录。

阅读全文 »

本文介绍 Java 数组使用方法 [1]

数组对于每一门编程语言来说都是重要的数据结构之一,当然不同语言对数组的实现及处理也不尽相同。

Java 语言中提供的数组是用来存储固定大小的同类型元素。

你可以声明一个数组变量,如 numbers[100] 来代替直接声明 100 个独立变量 number0,number1,….,number99。

本教程将为大家介绍 Java 数组的声明、创建和初始化,并给出其对应的代码。

阅读全文 »

本文收集了一些在 IDEA 中可能遇到的问题。
如:Project 的 SDK 设置,IDEA 的内存设置等。

阅读全文 »

Java 中 List 的循环用法

public class Liebiao {
    public static void main(String args[]) {
        int[] numbers = {10, 20, 30, 40, 50};

        for (int x : numbers) {
            System.out.print(x);
            System.out.print(",");
        }
        System.out.print("\n");

        String[] names = {"James", "Larry", "Tom", "Lacy"};
        for (String name : names) {
            System.out.print(name);
            System.out.print(",");
        }
    }
}

Nginx 反代配置

  • 不要用宝塔下载的 Nginx!!!!(不要问我怎么知道的)

  • 进入 /etc/nginx/conf.d 目录

  • 新建一个.conf 文件,名称任意,内容为

    upstream ice {
            server 0.0.0.0:你的服务需要的端口;
    
    }
    server {
            listen 80;
            server_name 你的服务器IP;
            location / {
            # 后端的Web服务器可以通过X-Forwarded-For获取用户真实IP
            proxy_next_upstream error timeout invalid_header http_500 http_502 http$
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $http_host;
            proxy_set_header X_Nginx_Proxy true;
            proxy_redirect off;
            }
    }
  • /etc/nginx/nginx.conf 下的 http 中添加

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
  • 重启 Nginx 服务