小编ato*_*fat的帖子

如何在Java中将Integer转换为本地化月份名称?

我得到一个整数,我需要在各种语言环境中转换为月份名称:

locale en-us的示例:
1 - > 1月
2日 - > 2月

locale es-mx的示例:
1 - > Enero
2 - > Febrero

java locale date

96
推荐指数
8
解决办法
12万
查看次数

如何在java中的引号之间获取数据?

我有这行文字,引号的数量可能会改变如下:

Here just one "comillas"
But I also could have more "mas" values in "comillas" and that "is" the "trick"
I was thinking in a method that return "a" list of "words" that "are" between "comillas"
Run Code Online (Sandbox Code Playgroud)

我如何获得结果应该是引号之间的数据?:

comillas
mas,comillas,trick
a,words,are,comillas

java quotes tokenize

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

如何像java一样在c ++中获得毫秒的时间

在Java中,您可以这样做:

long now = (new Date()).getTime();
Run Code Online (Sandbox Code Playgroud)

我怎么能用c ++做同样的事情?

c++ time

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

可以在 vi 上映射 shift + shift 吗?

我正在尝试使用 shift+shift 配置键映射,这可能吗?

我试过了:

<S-S> But this maps shift + S
<S><S> and this that maps to unknown 
Run Code Online (Sandbox Code Playgroud)

vim

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

Java String.replaceAll正则表达式

我想替换第一个上下文

网络/风格/ clients.html

使用java String.replaceFirst方法,我可以得到:

$ {} pageContext.request.contextPath /style/clients.html

我试过了

String test =  "web/style/clients.html".replaceFirst("^.*?/", "hello/");
Run Code Online (Sandbox Code Playgroud)

这给了我:

你好/风格/ clients.html

但是当我这样做的时候

 String test =  "web/style/clients.html".replaceFirst("^.*?/", "${pageContext.request.contextPath}/");
Run Code Online (Sandbox Code Playgroud)

给我

java.lang.IllegalArgumentException:非法组引用

java regex replace

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

某些文件的maven-assembly-plugin

我有多模块项目这是父pom.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.atoms</groupId>
    <artifactId>atoms-parent</artifactId>
    <packaging>pom</packaging>
    <version>1.0</version>
    <url/>
    <modules>
        <module>atoms-persistence</module>
        <module>atoms-reglas</module>
        <module>atoms-webservice</module>
    </modules>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>

                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <configuration>
                    <descriptors>
                        <descriptor>assemble.xml</descriptor>
                    </descriptors>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
Run Code Online (Sandbox Code Playgroud)

在项目atoms-persitence中我有以下文件:

com.atoms.vo.*

com.atoms.service.*

com.atoms.dao.*

在原子 - reglas我有:

com.atoms.rules.*

我如何使用程序集插件来创建一个只包含以下类的jar:

com.atoms.vo.*和com.atoms.rules.*?

java maven-2 maven-assembly-plugin

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

Vim 命令 :Explore :Sexplore :Hexplore 在 cygwin 中不起作用

3.3 在 cywing 2.721 中,安装是使用 cywing 进行的,一切正常,但是当我尝试使用以下命令时。

:Explore 
Run Code Online (Sandbox Code Playgroud)

vim 说 E492: Not an editor command

也不行:Sexplore:Hexplore行不通。

有没有办法激活这个功能?

这是在装有 windows xp 的机器中。

vim cygwin

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

标签 统计

java ×4

vim ×2

c++ ×1

cygwin ×1

date ×1

locale ×1

maven-2 ×1

maven-assembly-plugin ×1

quotes ×1

regex ×1

replace ×1

time ×1

tokenize ×1