美文网首页
idea笔记

idea笔记

作者: 我是电饭煲 | 来源:发表于2020-03-31 00:09 被阅读0次

Unrecognized Windows Sockets error: 10106: create解决方案https://blog.csdn.net/u011019141/article/details/79154696

idea激活

https://juejin.im/post/5df8a5a5e51d4557f0460990
https://pan.baidu.com/s/1v4g_fNTZse7piY9aPXNN9g#list/path=%2Fsharelink895397926-75686348426629%2F%E7%A0%B4%E8%A7%A3%E8%A1%A5%E4%B8%81&parentPath=%2Fsharelink895397926-75686348426629

快捷键

// 全局替换
Ctrl+Shift+R

idea运行maven命令

image.png

创建普通java项目教程

https://www.cnblogs.com/yb38156/p/9761716.html

idea不测试打包

https://my.oschina.net/u/3866531/blog/2250997*

设置idea序列化号自动生成

https://www.cnblogs.com/tufujie/p/9019032.html

idea使用代理的配置

-Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=1080 -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=1080
image.png

idea java 类开发中注释@Author @Description 注释报警告

https://blog.csdn.net/eases_stone/article/details/82178404

idea自动生成serialVersionUID插件

https://blog.csdn.net/qq_35246620/article/details/77686098

idea配置git

https://blog.csdn.net/weixin_39274753/article/details/79722522

javadoc 模板设置

1.设置
https://www.jb51.net/article/138025.htm
2.方法模板

*
 * @author yuanfeng.z
 * @describe
 * @date $date$ $time$
 * @param $param$
 * @return $return$
 */

3.类模板

*
 * @author yuanfeng.z
 * @describe
 * @date $date$ $time$
 */
image.png

鼠标滚动缩放字体设置

https://blog.csdn.net/cgl125167016/article/details/79010208

idea + maven 打包包含所有依赖包

<build>
    <plugins>
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
        <version>2.4.1</version>
        <configuration>
            <!-- get all project dependencies -->
            <descriptorRefs>
                <descriptorRef>jar-with-dependencies</descriptorRef>
            </descriptorRefs>
            <!-- MainClass in mainfest make a executable jar -->
            <archive>
                <manifest>
                    <mainClass>util.Microseer</mainClass>
                </manifest>
            </archive>

        </configuration>
        <executions>
            <execution>
                <id>make-assembly</id>
                <!-- bind to the packaging phase -->
                <phase>package</phase>
                <goals>
                    <goal>single</goal>
                </goals>
            </execution>
        </executions>
    </plugin>
    </plugins>
    </build>

eclipse 根据数据库表 生成类

https://www.cnblogs.com/jonsnow/p/6509923.html
https://www.2cto.com/database/201501/372023.html

jpa tools方式生成类:https://blog.csdn.net/zheng2008hua/article/details/6274659

坑:

  • 项目jdk版本比eclipse的jdk编译版高 的坑
  • idea 导入web项目配置tomcat教程

1.点击idea import project
2.https://www.cnblogs.com/Miracle-Maker/articles/6476687.html

IDEA 常用操作

  • 只留代码框:ctrl+shift+f12
  • 弹出导航栏:Alt+Home
  • 创建文件:ctrl+n

idea jpa 生成entity类
https://blog.csdn.net/lafengwnagzi/article/details/54095119

hibernate.xml文件:

<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
        "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
        "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
    <session-factory>
        <!-- Database connection settings -->
        <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
        <property name="connection.url">jdbc:mysql://localhost:3306/bitcopt_db</property>
        <!-- JDBC connection pool (use the built-in) -->
        <!--
        <property name="connection.pool_size">1</property>
         -->
        <!-- SQL dialect -->
        <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
        <!-- Enable Hibernate's automatic session context management -->
        <property name="current_session_context_class">thread</property>

        <!-- Echo all executed SQL to stdout -->
        <property name="show_sql">true</property>
        <mapping class="com.bitcopt.web.entity.CashCusmarginFrozenInsuerdspotEntity"/>
        <mapping class="com.bitcopt.web.entity.DealCusspreadcupondealEntity"/>
        <mapping class="com.bitcopt.web.entity.VolAskPricingEntity"/>
        <mapping class="com.bitcopt.web.entity.VolBidPricingEntity"/>
        <!-- Drop and re-create the database schema on startup -->
        <!--
        <property name="hbm2ddl.auto">update</property>
        -->

    </session-factory>
</hibernate-configuration>

注册码

https://guobinhit.blog.csdn.net/article/details/89040919

  • 在hosts文件中,添加以下映射关系:
    0.0.0.0 account.jetbrains.com
    0.0.0.0 www.jetbrains.com
  • 注册码:
    56ZS5PQ1RF-eyJsaWNlbnNlSWQiOiI1NlpTNVBRMVJGIiwibGljZW5zZWVOYW1lIjoi5q2j54mI5o6I5p2DIC4iLCJhc3NpZ25lZU5hbWUiOiIiLCJhc3NpZ25lZUVtYWlsIjoiIiwibGljZW5zZVJlc3RyaWN0aW9uIjoiRm9yIGVkdWNhdGlvbmFsIHVzZSBvbmx5IiwiY2hlY2tDb25jdXJyZW50VXNlIjpmYWxzZSwicHJvZHVjdHMiOlt7ImNvZGUiOiJJSSIsInBhaWRVcFRvIjoiMjAyMC0wMy0xMCJ9LHsiY29kZSI6IkFDIiwicGFpZFVwVG8iOiIyMDIwLTAzLTEwIn0seyJjb2RlIjoiRFBOIiwicGFpZFVwVG8iOiIyMDIwLTAzLTEwIn0seyJjb2RlIjoiUFMiLCJwYWlkVXBUbyI6IjIwMjAtMDMtMTAifSx7ImNvZGUiOiJHTyIsInBhaWRVcFRvIjoiMjAyMC0wMy0xMCJ9LHsiY29kZSI6IkRNIiwicGFpZFVwVG8iOiIyMDIwLTAzLTEwIn0seyJjb2RlIjoiQ0wiLCJwYWlkVXBUbyI6IjIwMjAtMDMtMTAifSx7ImNvZGUiOiJSUzAiLCJwYWlkVXBUbyI6IjIwMjAtMDMtMTAifSx7ImNvZGUiOiJSQyIsInBhaWRVcFRvIjoiMjAyMC0wMy0xMCJ9LHsiY29kZSI6IlJEIiwicGFpZFVwVG8iOiIyMDIwLTAzLTEwIn0seyJjb2RlIjoiUEMiLCJwYWlkVXBUbyI6IjIwMjAtMDMtMTAifSx7ImNvZGUiOiJSTSIsInBhaWRVcFRvIjoiMjAyMC0wMy0xMCJ9LHsiY29kZSI6IldTIiwicGFpZFVwVG8iOiIyMDIwLTAzLTEwIn0seyJjb2RlIjoiREIiLCJwYWlkVXBUbyI6IjI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RG6vg1yow==

相关文章

网友评论

      本文标题:idea笔记

      本文链接:https://www.haomeiwen.com/subject/puigkqtx.html