zoukankan      html  css  js  c++  java
  • mac下idea搭建maven项目的一些问题总结

    1.关于版本

    目标原版与原发行版本不一致

    <build>
    <finalName>comment</finalName>
    <plugins>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <version>3.1</version>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>
    <source>1.8</source>
    <target>1.8</target>
    <encoding>UTF-8</encoding>
    <compilerArguments>
    <extdirs>${basedir}/lib</extdirs>
    </compilerArguments>
    </configuration>
    </plugin>
    </plugins>
    </build>

    2.配置project strcuture->module->SDK
    3.配置maven中settings.xml加速下载jar包

       <mirrors>

         <mirror>
         <id>nexus-aliyun</id>
         <mirrorOf>central</mirrorOf>
         <name>Nexus aliyun</name>
         <url>http://maven.aliyun.com/nexus/content/groups/public</url>
        </mirror>

    </mirrors>

    4.配置tomcat server并部署
    5.关于图片显示出错问题
    先./shutdown.sh start断开Tomcat服务器,然后./startup.sh start启动Tomcat服务器。然后修改server.xml的端口为8090,修改后端管理系统comment项目system.properties中adImage.url路径的端口号为8090,然后上传图片,查看API,即可看到img的url也为8090。然后启动前端项目,可以看到图片效果。
    注意:comment项目放在Tomcat里面,upload放在Tomcat里面的webapps里面。


  • 相关阅读:
    How to extract msu/msp/msi/exe files from the command line
    Windbg and resources leaks in .NET applications 资源汇总
    [c# 20问] 3.String和string的区别
    [c# 20问] 2.如何转换XML文件
    [c# 20问] 1. 何时使用class与struct
    安装配置BITS上传服务
    The J-Link hardware debugging Eclipse plug-in
    swift material
    SCLButton
    ChatCell
  • 原文地址:https://www.cnblogs.com/hustxychen/p/8392832.html
Copyright © 2011-2022 走看看