Spring Boot + Freemarker 多語言國際化的作法
1. 在 application.properties 增加
MIS 發表在 痞客邦 留言(0) 人氣(156)
使用 Hibernate Tool 產生 Model 時, FetchType 預設是 FetchType.LAZY , 但在執行時, 卻常會產生類似下列 no Session 的錯誤訊息
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.spring.jwt.db.maria.model.authentication.User.userAuthorities, could not initialize proxy - no Session
MIS 發表在 痞客邦 留言(0) 人氣(996)
使用 Spring Boot 2 建置系統就是希望快速. 若專案範圍小的話, 資料庫倒是可以考慮使用 H2 database 來建罝
在 build.gradle 上加入
MIS 發表在 痞客邦 留言(0) 人氣(542)
環境: ApacheFriends XAMPP Version 7.1.7
+ Apache 2.4.26 + MariaDB 10.1.25 + PHP 7.1.7 (VC14 X86 32bit thread safe) + PEAR + phpMyAdmin 4.7.0 + OpenSSL 1.0.2f + ADOdb 518a + Mercury Mail Transport System v4.63 (not included in the portable version) + FileZilla FTP Server 0.9.41 (not included in the portable version) + Webalizer 2.23-04 (not included in the portable version) + Strawberry Perl 5.16.1.1 Portable + Tomcat 7.0.56 + XAMPP Control Panel Version 3.2.2 by hackattack142 |
MIS 發表在 痞客邦 留言(0) 人氣(277)
在 Tomcat 的 server.xml 裡設定
<Context docBase="weixin" path="/weixin" reloadable="true" source="org.eclipse.jst.jee.server:weixin"> <Resource name="jdbc/mysqlLocalDS01" username="root" password="password" url="jdbc:mysql://localhost:3306?characterEncoding=utf-8" auth="Container" driverClassName="com.mysql.cj.jdbc.Driver" factory="org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory" maxIdle="10" maxTotal="20" maxWaitMillis="-1" type="javax.sql.DataSource" /> <Resource name="jdbc/JappsDS01" username="ap" password="password" url="jdbc:oracle:thin:@127.0.0.1:1521:xe" driverClassName="oracle.jdbc.driver.OracleDriver" maxIdle="2" maxTotal="4" maxWaitMillis="5000" type="javax.sql.DataSource" validationQuery="select 1 from dual"/> <Resources> <PreResources base="C://CKFinderJava//userfiles" className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/userfiles"/> </Resources> </Context> |
MIS 發表在 痞客邦 留言(0) 人氣(376)

環境:
eclipse : https://eclipse.org/downloads/packages/release/Neon/3
MIS 發表在 痞客邦 留言(0) 人氣(870)
用 Hibernet Tool 自動產生的 Domain Code,對於 FOREIGN KEY 會以 annotation: @ManyToMany(fetch = FetchType.LAZY) 來作註,但執行時會發生下列的錯誤
Struts Problem Report
MIS 發表在 痞客邦 留言(0) 人氣(1,622)
作法如下:
http://stackoverflow.com/questions/26616723/java-lang-nosuchmethoderror-javax-persistence-table-indexesljavax-persistenc
MIS 發表在 痞客邦 留言(0) 人氣(339)

所需軟體
1. OS: windows 7
MIS 發表在 痞客邦 留言(1) 人氣(1,688)
在目錄 %JBOSS_HOME%\modules\com\microsoft\sqlserver\jdbc\main 下放入 module.xml & sqljdbc42.jar。
module.xml 的內容
MIS 發表在 痞客邦 留言(0) 人氣(1,313)