小编phe*_*mix的帖子

为什么即使 wsdl 中的 IP 地址错误,webservice 也会返回数据?

有一个PHP充当 a 的文件webservice,并且该wsdl文件中有以下几行:

<service name="ClientService">
    <documentation></documentation>
    <!-- partie 8 : Port -->
        <port name="ClientPort" binding="typens:ClientBinding">
            <soap:address location="http://192.168.1.12/imfmobile/webservice/InterfaceTransfererClient.php"/>
        </port>
</service>
Run Code Online (Sandbox Code Playgroud)

问题是webservice和所在计算机的IP地址wsdl是192.168.1.123,并且我从web服务调用函数时获取数据PHP!那么<soap:address标签就没有必要了吗?

php wsdl web-services

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

如何从J2ME中的另一个类对象获取byte []对象?

我知道在J2ME中我可以byte[]通过使用该getBytes()方法从String对象中获取对象.我的问题是:是否可以byte[]从任何其他对象获取对象class type?另外:是否可以byte[]从用户定义的类对象中获取对象?

java bytearray java-me

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

*符号在css属性之前的含义是什么?

可能重复:
在CSS声明前面*(星号)的含义是什么?

我在aquincum模板上找到了这个css:

.fluid .grid4 { width: 31.914893614%; *width: 31.8617021246383%; }
Run Code Online (Sandbox Code Playgroud)

那么放置*符号是什么意思?什么时候应该出现?

css

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

用户在字段中键入时如何将文本字段数据转换为大写?

有一个文本字段: <input type="text" id="id" name="name" value="value" />

如何在输入时使任何输入的数据为大写?

html jquery

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

如何创建包含ListView的tabHost?

在文档中,据说TabActivity不推荐使用:在此输入链接描述.我跟着他们的例子使用了FragmentTabHost它,但它也崩溃了.所以我尝试创建一个简单的activity并添加一个intent作为内容TabSpec,但应用程序崩溃了!那么如何创建一个TabHost包含ListView

这是我做的:

@Override
    public void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        setContentView(R.layout.onglet_parcelle_batiment);

        mTabHost = (TabHost)findViewById(R.id.onglets);

        mTabHost.setup();

        Bundle dataSent = getIntent().getExtras();

        bien_code = dataSent.getString("bien_code");

        afficherOngletParcelle();

        afficherOngletBatiments();

        mTabHost.setCurrentTab(0);

    }

    private void afficherOngletParcelle() {

        TabHost.TabSpec parcelle = mTabHost.newTabSpec("parcelle");
        View onglet = getLayoutInflater().inflate(R.layout.template_tab_onglets, null);
        TextView label = (TextView) onglet.findViewById(R.id.tabLabel);
        label.setText(getResources().getString(R.string.parcelle));
        parcelle.setIndicator(onglet);
        Intent i = new Intent(OngletParcelleListeBatiments.this, ParcelleActivity.class);
        i = i.putExtra("bien_code", bien_code);
        parcelle.setContent(i);
        mTabHost.addTab(parcelle);

    }

    private void afficherOngletBatiments() {

        TabHost.TabSpec batiment …
Run Code Online (Sandbox Code Playgroud)

android

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

如何给war文件命名?

war通过在我的Spring项目的根目录中执行此命令生成了一个文件:mvn package

生成的war文件称为hib-1.0.0-BUILD-SNAPSHOT.war

我发现第一个词hib是项目的artifactId.

如何为生成的war文件指定自定义名称?

spring maven

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

如何计算JTable的行数?

有一个JTable。我想知道它的行数。如何做到这一点?

swing jtable

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

当url在斜杠后面有参数数据时,如何编写控制器方法的签名?

PHP有来识别的可能性parameter通过将其在控制器的方法,在地址栏中; 例如 :

http://192.168.2.49/papsp/index.php/meeting/modif/3
Run Code Online (Sandbox Code Playgroud)

在此示例中,数据3被视为meeting控制器方法的参数值modif:

public modif($key) { ... }
Run Code Online (Sandbox Code Playgroud)

那么如何在Spring中进行类比的处理呢?

java spring spring-mvc spring-4

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

如何从主方法调用组件的方法?

我是 springboot 的新手

我创建了一个组件:

@Component
public class Article {

    File xml = new File(Constante.ARTICLE_XML);
    static File out = new File(Constante.ARTICLE_CSV + "out_article.csv");

    public synchronized void process() throws IOException, InterruptedException {

        Thread th = new Thread() {
            @Override
            public void run() {
                try {
                    .....
                }
            }
        };
        th.start();
    }
    .....
}
Run Code Online (Sandbox Code Playgroud)

这是主要方法:

@SpringBootApplication
@EnableAutoConfiguration
@ComponentScan(basePackages = "com.axian.oxalys.*")
@PropertySource({"file:${app.home}/application.properties"})
public class App {

    public static void main(String[] args) {



    }
}
Run Code Online (Sandbox Code Playgroud)

如何从main方法调用组件的方法 process() ?

spring-boot

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

当Hibernate查询中有多个bean别名时,列表的返回类型是什么?

有一个Hibernate查询:

@Override
@Transactional
public List<> getClassificationOfPta() {

    String hql = "select p , c from Pta p join p.classePta c where c.niveau = 2 order by p.creation";

    Session sessionDynamic = Utils.createDynamicSession(env);

    Query query = sessionDynamic.createQuery(hql);

    @SuppressWarnings("unchecked")
    List<> list = (List<>) query.list();

    sessionDynamic.close();

    return list;

}
Run Code Online (Sandbox Code Playgroud)

那么在里面写<>什么呢?

java orm spring hibernate jpa

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