idea笔记

2020-03-31  本文已影响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

坑:

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

IDEA 常用操作

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

上一篇下一篇

猜你喜欢

热点阅读