Coder Social home page Coder Social logo

lovemqy's Introduction

1、阿里**仓库(首选推荐)

alimaven aliyun maven http://maven.aliyun.com/nexus/content/groups/public/ 2、camunda.com **仓库(第2推荐使用) activiti-repos2 Activiti Repository 2 https://app.camunda.com/nexus/content/groups/public 3、spring.io **仓库 springsource-repos SpringSource Repository http://repo.spring.io/release/ 4、maven.apache.org **仓库 central-repos Central Repository http://repo.maven.apache.org/maven2 5、maven.org **仓库 central-repos1 Central Repository 2 http://repo1.maven.org/maven2/ 6、alfresco.com **仓库(第3推荐使用) activiti-repos Activiti Repository https://maven.alfresco.com/nexus/content/groups/public 7、oschina **仓库(需要x墙哟) oschina-repos Oschina Releases http://maven.oschina.net/content/groups/public 8、oschina thinkgem **仓库(需要x墙哟) thinkgem-repos ThinkGem Repository http://git.oschina.net/thinkgem/repos/raw/master 9、java.net **仓库(需要x墙哟) java-repos Java Repository http://download.java.net/maven/2/ 10、github.com **仓库(需要x墙哟) thinkgem-repos2 ThinkGem Repository 2 https://raw.github.com/thinkgem/repository/master 三、Maven **仓库配置示例 这里使用 Dubbo官方的**仓库为示例,在 settings.xml 的 profiles 节点中添加如下内容: jdk‐1.8 true 1.8 1.8 1.8 1.8 sonatype-nexus-snapshots https://oss.sonatype.org/content/repositories/snapshots false true 四、Maven 阿里云(Aliyun)仓库 Maven 仓库默认在国外, 国内使用难免很慢,我们可以更换为阿里云的仓库。

修改 maven 根目录下的 conf 文件夹中的 settings.xml 文件,在 mirrors 节点上,添加内容如下:

aliyunmaven

*

阿里云公共仓库

https://maven.aliyun.com/repository/public

推荐内容

loveMQY

项目积累

private Poem getPoem () { Poem poem = new Poem(); poem.setAuthor("李白"); poem.setCategory("唐诗"); poem.setContent("日照香炉生紫烟遥看瀑布挂前川飞流直下三千尺疑是银河落九天日日"); poem.setDynasty("唐"); poem.setHref(""); poem.setTitle("望庐山瀑布"); poem.setTranslation(""); return poem; }

private Long id; private String dynasty; private String category; private String title; private String author; private String content; private String href; private String translation;

public class PoemContent {

private Long id;

private String sentence;

private int order;

private Long poemId;
}

HanZi @TableField("NAME") private String name; @TableField("EXPLANATORY_NOTE") private String explanatoryNote;

PersonHanZiLink

@TableField("PERSON_ID")
private Long personId;
@TableField("HAN_ZI_ID")
private Long hanZiId;

public String dealContentHanZiList(String content) { Long personId = 100L; String errorMsg = StrUtil.EMPTY; Map<Long, Integer> contentIdMap = getAllContentIdMap(content); List deleteList = Lists.newArrayList(); List personHanZiLinkList = getPersonHanZiList(personId);

    //当前字有多个,进行组合
    Map<Long, Integer> personHanZiIdMap = getPersonHanZiIdMap(personHanZiLinkList);

    Map<Long, HanZi> hanZiIdMap = iHanZiService.getHanZiIdMap();
    List<String> canNotSynthesisHanZiList = Lists.newArrayList();
    for (Map.Entry<Long, Integer> entry : contentIdMap.entrySet()) {
        Long key = entry.getKey();
        Integer value = entry.getValue();
        if (personHanZiIdMap.containsKey(key)) {
            if (value > personHanZiIdMap.get(key)) {
                canNotSynthesisHanZiList.add(hanZiIdMap.get(key).getName());
            }
        } else {
            canNotSynthesisHanZiList.add(hanZiIdMap.get(key).getName());
        }
    }
    if (CollUtil.isNotEmpty(canNotSynthesisHanZiList)) {
        errorMsg = StrUtil.join("", canNotSynthesisHanZiList);
        errorMsg = "这么多字没有:" + errorMsg;
    } else {
        for (Map.Entry<Long, Integer> entry : contentIdMap.entrySet()) {
            Long key = entry.getKey();
            Integer value = entry.getValue();
            for (int i = 0; i < value; i++) {
                personHanZiLinkList.stream().filter(
                        item -> item.getHanZiId().equals(key)).findFirst().map(vo -> {
                    deleteList.add(vo);
                    personHanZiLinkList.remove(vo);
                    return vo;
                });
            }
        }
        for (HanZiVo personHanZiLink : deleteList) {
            System.out.println(personHanZiLink.getHanZiId());
            System.out.println(personHanZiLink.getHanZiLinkId());
            System.out.println(personHanZiLink.getName());
            System.out.println("#############");
        }
        List<Long> idsList = deleteList.stream().map(HanZiVo::getHanZiLinkId).collect(Collectors.toList());
        deleteForceByIds(ArrayUtil.toArray(idsList, Long.class));
    }
    return errorMsg;
}

lovemqy's People

Contributors

564783435qq avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.