小编sun*_*leo的帖子

Internet Explorer 11缺少兼容模式

在Internet Explorer 11中如何检查IE9和IE10的兼容性视图,默认情况下找不到东西,我无法将自己从ie11更改为ie9或ie10.

我用谷歌搜索,没有找到任何有用的东西.下面是其中之一,但使用ie10我可以得到所有较低版本的兼容视图,但这是不可能使用ie11.

To change your Compatibility View settings
Open Internet Explorer for the desktop, click Tools, and then click Compatibility View settings.
In the Compatibility View Settings box, add the problematic website URL, and then click Add.
Compatibility View is turned on for this single website, for this specific computer.
Decide if you want your intranet sites displayed using Compatibility View, decide whether to use Microsoft compatibility lists, and then click Close.
Run Code Online (Sandbox Code Playgroud)

browser internet-explorer

5
推荐指数
1
解决办法
2万
查看次数

如何自定义jquery ui对话框标题颜色和字体大小?

如何更改jquery ui对话框标题的颜色和其他属性

HTML :
<div id="dialog" title=""
style="display: none; font-size: 15px; width: 500; height: 300"></div>

javascript :
 $( "#dialog" ).dialog( "option", "title",title );
Run Code Online (Sandbox Code Playgroud)

请给我一些想法来自定义jquery对话框的标题.谢谢你提前.

javascript jquery-ui

4
推荐指数
1
解决办法
2万
查看次数

这个==在java中为null,之后还执行为什么继续?

这是我的代码.我将null设置为此引用,然后为什么它打印不为null set

Test.java

try
  {                
     new Test().setNull();
     System.out.println("not null set");
   }
catch (Exception e)
  {//Catch exception if any
     System.err.println("Error: " + e.getMessage());
  }

  }
  public  void setNull()
  {
     setNull(this);
  }
  public  void setNull(Object thisRef)
  {
      thisRef = null;
  }
Run Code Online (Sandbox Code Playgroud)

输出:非空集

java

4
推荐指数
1
解决办法
351
查看次数

如何打印或获取服务器上运行的应用程序的JRE版本?

我的意思是使用javacode我想找到应用程序的JRE版本而不是服务器.在我的生产服务器中,我在java中有成千上万的应用程序,如tomcat,websphere,axway等.我想知道特定的应用程序jre版本.我将编写一个类,我想要使用它进行打印.该课程将被放置在特定的应用程序中.

我试过这个链接,但我没有得到它.

java

4
推荐指数
1
解决办法
2519
查看次数

Java创建临时文件

TempFilejava中的最大名称长度是多少,MaximumFilesize取决于我们提到要创建的临时目录还是其他一些基于java的机器?

何时调用deleteOnExit()方法---但是这个方法的用途是什么,因为它在JVM关闭时被调用.但是基于生产的服务器将运行24*7.So文件将连续创建,这将是问题所在我们因为内存而创建文件的服务器.

java

4
推荐指数
1
解决办法
2万
查看次数

sql中小数转整数

删除小数值

select cast(val as integer),val from table
Run Code Online (Sandbox Code Playgroud)

我尝试了一下也不起作用,请告诉我解决这个问题的方法。

select ROUND(2.9,0) from dual

24  23.8331134259259
31  30.8322222222222
31  30.8321990740741
31  31.1120023148148
31  31.1119791666667
28  28.0590046296296
31  31.1177314814815
4   4.05344907407407
4   4.03957175925926
14  13.7137731481481
5   4.79490740740741
5   4.79490740740741
5   4.79489583333333
5   4.79488425925926
Run Code Online (Sandbox Code Playgroud)

预期输出:

23  23.8331134259259
30  30.8322222222222
30  30.8321990740741
30  31.1120023148148
30  31.1119791666667
28  28.0590046296296
31  31.1177314814815
4   4.05344907407407
4   4.03957175925926
13  13.7137731481481
4   4.79490740740741
4   4.79490740740741
4   4.79489583333333
4   4.79488425925926
Run Code Online (Sandbox Code Playgroud)

sql oracle

4
推荐指数
1
解决办法
5870
查看次数

Oracle无效使用类型名称或子类型名称

我正在使用这个块有什么问题?请帮忙解决这个问题.根据where子句只选择一行.

表clazzes

Name Type          Nullable Default Comments 
---- ------------- -------- ------- -------- 
ID   NUMBER(10)                              
NAME VARCHAR2(100) Y        
Run Code Online (Sandbox Code Playgroud)

PL/SQL块:

declare
type clazzes_row_type is record
(clazz_rownum number,
 clazz_id clazzes.id%type,
 clazz_name clazzes.name%type);
begin
clazzes_row_type.clazz_rownum :=111;
select id,name into clazzes_row_type.clazz_id,clazzes_row_type.clazz_name
from clazzes where name ='leo1';
dbms_output.put_line(clazzes_row_type.clazz_id);
dbms_output.put_line(clazzes_row_type.clazz_rownum);
dbms_output.put_line(clazzes_row_type.clazz_name);
end;
Run Code Online (Sandbox Code Playgroud)

例外:

ORA-06550: line 8, column 1:
PLS-00330: invalid use of type name or subtype name
ORA-06550: line 8, column 1:
PL/SQL: Statement ignored
ORA-06550: line 9, column 21:
PLS-00330: invalid use of type name or …
Run Code Online (Sandbox Code Playgroud)

sql oracle plsql

4
推荐指数
1
解决办法
8857
查看次数

Apache Camel路由中的Spring Boot属性用法

这可以在Apache Camel路由中使用Spring Boot属性吗?@Value工作正常但是这可以直接放置表达式的持有者.

更新:我知道PropertiesComponent,但除了Applicaiton.yml之外,还有一个我不喜欢的配置.

application.yml

sftp:
  host:     10.10.128.128
  user:     ftpuser1
  password: ftpuser1password  
  path:     /tmp/inputfile/test1
Run Code Online (Sandbox Code Playgroud)

Spring Boot Apache Camel路线:

 @Value("${sftp.user}")
    private String sftpUser;

    @Value("${sftp.host}")
    private String sftpHost;

    @Value("${sftp.password}")
    private String sftpPassword;

    @Value("${sftp.path}")
    private String sftpInPath;

    from("sftp://"+sftpUser+"@"+sftpHost+sftpInPath+"?delete=true&password="+sftpPassword)
//this is working

    from("sftp://${sftp.user}@${sftp.host}${sftp.path}?password=${sftp.password}")
// is this possible something like this?
Run Code Online (Sandbox Code Playgroud)

java apache-camel spring-boot

4
推荐指数
2
解决办法
1777
查看次数

Matcher.find()之前的Java Regex Pattern Matcher.matches()奇怪的行为

我试过这个例子只是交换两行它给出了不同的输出原因

String inputString = "username@gmail.com"; 
String pattern="([a-z]+@)([a-z]+)(\\.[a-z]+)";
Pattern p = Pattern.compile(pattern); 
Matcher m = p.matcher(inputString); 
Run Code Online (Sandbox Code Playgroud)

///这里发生了变化

if(m.find()) 
{
   String resultString = m.replaceAll("$1xxxx$3"); 
   System.out.println(resultString); 
}

System.out.println(m.matches());//line to be changed
Run Code Online (Sandbox Code Playgroud)

输出:

username@xxxx.com

真正

System.out.println(m.matches());//line changed     
if(m.find()) 
{
   String resultString = m.replaceAll("$1xxxx$3"); 
   System.out.println(resultString); 
}
Run Code Online (Sandbox Code Playgroud)

输出:true

java regex

3
推荐指数
1
解决办法
5214
查看次数

PLS-00103:遇到以下其中一项时遇到符号:

似乎没问题但是我得到了例外,请纠正我.

declare
    var_number number;

begin
    var_number := 10;

    if var_number > 100 then
        dbms_output.put_line(var_number||' is greater than 100');
    elseif var_number < 100 then
        dbms_output.put_line(var_number||' is less than 100');
    else
        dbms_output.put_line(var_number||' is equal to 100');
    end if;

end;
Run Code Online (Sandbox Code Playgroud)

例外:

ORA-06550: line 8, column 8:
PLS-00103: Encountered the symbol "VAR_NUMBER" when expecting one of the following:
    := . ( @ % ;
ORA-06550: line 13, column 4:
PLS-00103: Encountered the symbol ";" when expecting one of the following:
    if
Run Code Online (Sandbox Code Playgroud)

sql oracle plsql syntax-error

3
推荐指数
2
解决办法
9万
查看次数