Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure the Idea plug-in in EasyCode

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article is to share with you about how to configure the Idea plug-in in EasyCode, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

EasyCode Idea plug-in configuration

Download the configuration file from the appeal link: easyCode-settings.zip

How to import the configuration into idea's own Baidu? install the EasyCode plug-in before import, and restart Idea after import

The configuration includes:

Code generation for mysql and oracle databases: including batch addition, deletion, modification and paging

Bootstrap style form, table list js generation

Check js with bootstrapValidator frontend:

NotNull is a required attribute for database field.

ColumnLength is database field length-1 means no length columnLength is database field length-1 means no length

/ * add all non-empty checks * dom element add notNull attribute * @ param formId*/function addAllNotNullValidator (formId) {$(formId + "[notNull]") .each (function () {var fieldName = this.name var notNull = this.getAttribute ("notNull"); var message = this.getAttribute ("data-msg") | "cannot be empty" If (notNull) {$(formId) .bootstrapValidator ("addField", fieldName, {validators: {notEmpty: {message: message},}}) }})} / * add field length check * dom element add columnLength attribute setting length * @ param formId*/function addAllStringLengthValidator (formId) {$(formId + "input,textarea") .each (function () {if (this.type! = "file" & & this.type! = "hidden") {var fieldName = this.name / / console.log (formId, "fieldName", fieldName) This) var max = this.getAttribute ("columnLength") If (if) {$(formId) .bootstrapValidator ("addField", fieldName, {validators: {stringLength: {min: 0, max: max) Message: 'data length:' + max},}}) })} understand a picture

Select this group to generate code

The above is how to configure the Idea plug-in in EasyCode. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report