小编jav*_*rld的帖子

faces-config.xml中的EL解析器

在进行Spring-JSF集成时,我看到了这个条目faces-config.xml.

<application>
    <el-resolver>
        org.springframework.web.jsf.el.SpringBeanFacesELResolver
    </el-resolver>
</application>
Run Code Online (Sandbox Code Playgroud)

有人可以解释究竟是什么<application>以及<el-resolver>是谁?

jsf spring el faces-config

8
推荐指数
1
解决办法
7771
查看次数

主线程在 CompletableFuture 完成之前退出

    CompletableFuture feature = CompletableFuture.supplyAsync (() ->       composeMethod ( )).
            thenAccept (s -> System.out.println ("wassup java" + s)).
            thenRun (() -> System.out.println (" imm immortal"));
    nonblockingmethod ( );
Run Code Online (Sandbox Code Playgroud)

这是我正在研究的 CompletableFuture 未来示例

private static void nonblockingmethod() {
        System.out.println ("why  should i wait for you ");
    }

    private static String composeMethod() {
        try {
            TimeUnit.MILLISECONDS.sleep (3);
            File file = Paths.get ("/Users/solo/solo1.txt").toFile ( );

            if (!file.exists ( )) {
                file.createNewFile ( );
            }

        } catch (Exception e) {

        }
        return "   resultdaa";
    }
Run Code Online (Sandbox Code Playgroud)

首先我从 …

java multithreading asynchronous

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

base64 编码的图像未在材质 ui CardMedia 中显示

嗨,我正在尝试实现材质 ui 卡组件

 <CardMedia
                        className={classes.media}
                        title="Contemplative Reptile"
                     src={'data:image/jpeg;base64,/9j/4AAQSkZJRgAtXpVp8YbaRdxnam/SvPJ/>
Run Code Online (Sandbox Code Playgroud)

我试图以 base64 编码的字符串格式显示图像,但图像未呈现

reactjs material-ui

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